Skip to content

Commit 02fadc2

Browse files
mvzvincent-psarga
authored andcommitted
Ingest all non-curlies at once
1 parent 9d7737d commit 02fadc2

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/ruby-handlebars/parser.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Parser < Parslet::Parser
3030
rule(:eof) { any.absent? }
3131
rule(:template_content) {
3232
(
33-
nocurly | # Not a curly
33+
nocurly.repeat(1) | # A sequence of non-curlies
3434
ocurly >> nocurly | # Opening curly that doesn't start a {{}}
3535
ccurly | # Closing curly that is not inside a {{}}
3636
ocurly >> eof # Opening curly that doesn't start a {{}} because it's the end

0 commit comments

Comments
 (0)