We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 36caa67 commit 9d7737dCopy full SHA for 9d7737d
1 file changed
lib/ruby-handlebars/parser.rb
@@ -30,10 +30,10 @@ class Parser < Parslet::Parser
30
rule(:eof) { any.absent? }
31
rule(:template_content) {
32
(
33
+ nocurly | # Not a curly
34
ocurly >> nocurly | # Opening curly that doesn't start a {{}}
- ocurly >> eof | # Opening curly that doesn't start a {{}} because it's the end
35
ccurly | # Closing curly that is not inside a {{}}
36
- nocurly
+ ocurly >> eof # Opening curly that doesn't start a {{}} because it's the end
37
).repeat(1).as(:template_content) }
38
39
rule(:unsafe_replacement) { docurly >> space? >> path.as(:replaced_unsafe_item) >> space? >> dccurly }
0 commit comments