Commit 9978203b authored by Behdad Esfahbod's avatar Behdad Esfahbod

[fc-lang] Allow using ".." instead of "-" in ranges

Allows copying emoji-data.txt and other Unicode data files intact.
parent 1bb8e691
......@@ -174,6 +174,11 @@ scan (FILE *f, char *file, FcCharSetFreezer *freezer)
if (sscanf (line, "%x-%x", &start, &end) != 2)
fatal (file, lineno, "parse error");
}
else if (strstr (line, ".."))
{
if (sscanf (line, "%x..%x", &start, &end) != 2)
fatal (file, lineno, "parse error");
}
else
{
if (sscanf (line, "%x", &start) != 1)
......
......@@ -28,7 +28,7 @@
#
0023 # 1.1 [1] (#️) number sign
002A # 1.1 [1] (*️) asterisk
0030-0039 # 1.1 [10] (0️-9️) digit zero-digit nine
0030..0039 # 1.1 [10] (0️-9️) digit zero-digit nine
00A9 # 1.1 [1] (©️) copyright
00AE # 1.1 [1] (®️) registered
203C # 1.1 [1] (‼️) double exclamation mark
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment