Skip to content

Commit 016dcda

Browse files
committed
Include CRLF in junk_line per EBNF
1 parent 77eb75d commit 016dcda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fluent/parser.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ local ftl_grammar = epnf.define(function (_ENV)
6868
PatternElement = Cg(C(inline_text + block_text), "value") + Cg(inline_placeable + block_placeable, "expression")
6969
Pattern = V"PatternElement"^1
7070
Attribute = line_end * blank^-1 * P"." * V"Identifier" * blank_inline^-1 * "=" * blank_inline^-1 * V"Pattern"
71-
local junk_line = (1-line_end)^0 * (P"\n" + P(nulleof))
71+
local junk_line = (1-P"\n"-P(nulleof))^0 * (P"\n" + P(nulleof))
7272
Junk = Cg(junk_line * (junk_line - P"#" - P"-" - R("az","AZ"))^0, "content")
7373
local comment_char = any_char - line_end
7474
CommentLine = Cg(P"###" + P"##" + P"#", "sigil") * (" " * Cg(C(comment_char^0), "content"))^-1 * line_end

0 commit comments

Comments
 (0)