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

Commit

Permalink
[parsers] fix rhs parsing in configuration
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
phi-gamma committed Apr 27, 2016
1 parent d6b1caf commit 23ff1b0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/luaotfload-parsers.lua
Original file line number Diff line number Diff line change
Expand Up @@ -722,10 +722,10 @@ local blank_line = ws * eol
local skip_line = comment_line + blank_line
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_char = (valid_escapes + (1 - linebreak - backslash - comment_char))
local ini_value = (Cs (ini_value_char^0) / string.strip)
* (comment_char * (1 - eol)^0)^-1
local ini_string_char = (valid_escapes + (1 - newline - dquote - backslash))
local ini_string_char = (valid_escapes + (1 - linebreak - dquote - backslash))
local ini_string = dquote
* Cs (ini_string_char^0)
* dquote
Expand Down

0 comments on commit 23ff1b0

Please sign in to comment.