We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 77eb75d commit 016dcdaCopy full SHA for 016dcda
fluent/parser.lua
@@ -68,7 +68,7 @@ local ftl_grammar = epnf.define(function (_ENV)
68
PatternElement = Cg(C(inline_text + block_text), "value") + Cg(inline_placeable + block_placeable, "expression")
69
Pattern = V"PatternElement"^1
70
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))
+ local junk_line = (1-P"\n"-P(nulleof))^0 * (P"\n" + P(nulleof))
72
Junk = Cg(junk_line * (junk_line - P"#" - P"-" - R("az","AZ"))^0, "content")
73
local comment_char = any_char - line_end
74
CommentLine = Cg(P"###" + P"##" + P"#", "sigil") * (" " * Cg(C(comment_char^0), "content"))^-1 * line_end
0 commit comments