summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/luaotfload-parsers.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/luaotfload-parsers.lua b/src/luaotfload-parsers.lua
index 180adac..3eeb614 100644
--- a/src/luaotfload-parsers.lua
+++ b/src/luaotfload-parsers.lua
@@ -632,8 +632,8 @@ local comment_char = semicolon + gartenzaun
local comment_line = ws * comment_char * (1 - eol)^0 * eol
local blank_line = ws * eol
local skip_line = comment_line + blank_line
-local ini_id_char = alpha + dash
-local ini_id = (alpha * ini_id_char^0) / stringlower
+local ini_id_char = alpha + (dash / "_")
+local ini_id = Cs(alpha * ini_id_char^0) / stringlower
local ini_value_char = (valid_escapes + (1 - newline - backslash - comment_char))
local ini_value = (Cs (ini_value_char^0) / string.strip)
* (comment_char * (1 - eol)^0)^-1