@@ -4,71 +4,71 @@ Delimiter problems:
44 $ PROBLEM= no-closing-mustache. mustache
55 $ echo " { {foo" > $ PROBLEM
66 $ mustache foo.json $ PROBLEM
7- Template parse error:
7+ Parse error:
88 File " no-closing-mustache. mustache" , line 2, character 0: '}}' expected.
99 [3]
1010
1111 $ PROBLEM=one-closing-mustache.mustache
1212 $ echo " {{foo}" > $ PROBLEM
1313 $ mustache foo.json $ PROBLEM
14- Template parse error:
14+ Parse error:
1515 File " one-closing-mustache. mustache" , line 1, character 5: '}}' expected.
1616 [3]
1717
1818 $ PROBLEM=eof-before-variable.mustache
1919 $ echo " {{" > $ PROBLEM
2020 $ mustache foo.json $ PROBLEM
21- Template parse error:
21+ Parse error:
2222 File " eof-before-variable. mustache" , line 2, character 0: ident expected.
2323 [3]
2424
2525 $ PROBLEM=eof-before-section.mustache
2626 $ echo " {{# " > $PROBLEM
2727 $ mustache foo. json $ PROBLEM
28- Template parse error:
28+ Parse error:
2929 File " eof-before-section.mustache" , line 2 , character 0 : ident expected.
3030 [3 ]
3131
3232 $ PROBLEM= eof-before-section-end. mustache
3333 $ echo " { {# foo}} {{.}} {{/" > $PROBLEM
3434 $ mustache foo. json $ PROBLEM
35- Template parse error:
35+ Parse error:
3636 File " eof-before-section-end.mustache" , line 2 , character 0 : ident expected.
3737 [3 ]
3838
3939 $ PROBLEM= eof-before-inverted-section. mustache
4040 $ echo " { {^ " > $ PROBLEM
4141 $ mustache foo.json $ PROBLEM
42- Template parse error:
42+ Parse error:
4343 File " eof-before-inverted-section. mustache" , line 2, character 0:
4444 ident expected.
4545 [3]
4646
4747 $ PROBLEM=eof-before-unescape.mustache
4848 $ echo " {{{" > $ PROBLEM
4949 $ mustache foo.json $ PROBLEM
50- Template parse error:
50+ Parse error:
5151 File " eof-before-unescape. mustache" , line 2, character 0: ident expected.
5252 [3]
5353
5454 $ PROBLEM=eof-before-unescape.mustache
5555 $ echo " {{&" > $ PROBLEM
5656 $ mustache foo.json $ PROBLEM
57- Template parse error:
57+ Parse error:
5858 File " eof-before-unescape. mustache" , line 2, character 0: ident expected.
5959 [3]
6060
6161 $ PROBLEM=eof-before-partial.mustache
6262 $ echo " {{> " > $ PROBLEM
6363 $ mustache foo.json $ PROBLEM
64- Template parse error:
64+ Parse error:
6565 File " eof-before-partial. mustache" , line 2, character 0: '}}' expected.
6666 [3]
6767
6868 $ PROBLEM=eof-in-comment.mustache
6969 $ echo " {{! non-terminated comment" > $ PROBLEM
7070 $ mustache foo.json $ PROBLEM
71- Template parse error:
71+ Parse error:
7272 File " eof-in-comment. mustache" , line 2, character 0: non-terminated comment.
7373 [3]
7474
@@ -78,14 +78,14 @@ Mismatches between opening and closing mustaches:
7878 $ PROBLEM=two-three.mustache
7979 $ echo " {{ foo }}}" > $ PROBLEM
8080 $ mustache foo.json $ PROBLEM
81- Template parse error:
81+ Parse error:
8282 File " two-three. mustache" , line 1, characters 7-10: '}}' expected.
8383 [3]
8484
8585 $ PROBLEM=three-two.mustache
8686 $ echo " {{{ foo }}" > $ PROBLEM
8787 $ mustache foo.json $ PROBLEM
88- Template parse error:
88+ Parse error:
8989 File " three-two. mustache" , line 1, characters 8-10: '}}}' expected.
9090 [3]
9191
@@ -95,22 +95,22 @@ Mismatch between section-start and section-end:
9595 $ PROBLEM=foo-bar.mustache
9696 $ echo " {{# foo}} {{.}} {{/bar}}" > $PROBLEM
9797 $ mustache foo. json $ PROBLEM
98- Template parse error:
98+ Parse error:
9999 File " foo-bar.mustache" , line 1 , characters 0 -23:
100100 Section mismatch: {{# foo}} is closed by {{/bar}}.
101101 [3 ]
102102
103103 $ PROBLEM= foo-not-closed. mustache
104104 $ echo " { {# foo}} {{.}} {{foo}}" > $PROBLEM
105105 $ mustache foo. json $ PROBLEM
106- Template parse error:
106+ Parse error:
107107 File " foo-not-closed.mustache" , line 2 , character 0 : syntax error.
108108 [3 ]
109109
110110 $ PROBLEM= wrong-nesting. mustache
111111 $ echo " { {# bar}} {{#foo}} {{.}} {{/bar}} {{/foo}}" > $PROBLEM
112112 $ mustache foo. json $ PROBLEM
113- Template parse error:
113+ Parse error:
114114 File " wrong-nesting.mustache" , line 1 , characters 9 -32:
115115 Section mismatch: {{# foo}} is closed by {{/bar}}.
116116 [3 ]
@@ -121,6 +121,6 @@ Weird cases that may confuse our lexer or parser:
121121 $ PROBLEM= weird-tag-name. mustache
122122 $ echo " { {. weird}} foo bar" > $ PROBLEM
123123 $ mustache foo. json $ PROBLEM
124- Template parse error:
124+ Parse error:
125125 File " weird-tag-name.mustache" , line 1 , character 3 : ' }}' expected.
126126 [3 ]
0 commit comments