Skip to content
This repository was archived by the owner on Sep 27, 2019. It is now read-only.

Commit 23ff1b0

Browse files
committed
[parsers] fix rhs parsing in configuration
Fix issue #344 An incomplete matching rule for determining configuration values caused return bytes (0x0d) to leak into the configuration if Windows style newlines are used. Fixed by adapting the pattern.
1 parent d6b1caf commit 23ff1b0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/luaotfload-parsers.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -722,10 +722,10 @@ local blank_line = ws * eol
722722
local skip_line = comment_line + blank_line
723723
local ini_id_char = alpha + (dash / "_")
724724
local ini_id = Cs(alpha * ini_id_char^0) / stringlower
725-
local ini_value_char = (valid_escapes + (1 - newline - backslash - comment_char))
725+
local ini_value_char = (valid_escapes + (1 - linebreak - backslash - comment_char))
726726
local ini_value = (Cs (ini_value_char^0) / string.strip)
727727
* (comment_char * (1 - eol)^0)^-1
728-
local ini_string_char = (valid_escapes + (1 - newline - dquote - backslash))
728+
local ini_string_char = (valid_escapes + (1 - linebreak - dquote - backslash))
729729
local ini_string = dquote
730730
* Cs (ini_string_char^0)
731731
* dquote

0 commit comments

Comments
 (0)