@@ -4,60 +4,70 @@ Delimiter problems:
44 $ PROBLEM= no-closing-mustache. mustache
55 $ echo " { {foo" > $ PROBLEM
66 $ mustache foo.json $ PROBLEM
7+ Template parse error:
78 Line 2, character 0: syntax error.
89 [3]
910
1011 $ PROBLEM=one-closing-mustache.mustache
1112 $ echo " {{foo}" > $ PROBLEM
1213 $ mustache foo.json $ PROBLEM
14+ Template parse error:
1315 Lines 1-2, characters 6-0: syntax error.
1416 [3]
1517
1618 $ PROBLEM=eof-before-variable.mustache
1719 $ echo " {{" > $ PROBLEM
1820 $ mustache foo.json $ PROBLEM
21+ Template parse error:
1922 Line 2, character 0: ident expected.
2023 [3]
2124
2225 $ PROBLEM=eof-before-section.mustache
2326 $ echo " {{# " > $PROBLEM
2427 $ mustache foo. json $ PROBLEM
28+ Template parse error:
2529 Line 2 , character 0 : ident expected.
2630 [3 ]
2731
2832 $ PROBLEM= eof-before-section-end. mustache
2933 $ echo " { {# foo}} {{.}} {{/" > $PROBLEM
3034 $ mustache foo. json $ PROBLEM
35+ Template parse error:
3136 Line 2 , character 0 : ident expected.
3237 [3 ]
3338
3439 $ PROBLEM= eof-before-inverted-section. mustache
3540 $ echo " { {^ " > $ PROBLEM
3641 $ mustache foo.json $ PROBLEM
42+ Template parse error:
3743 Line 2, character 0: ident expected.
3844 [3]
3945
4046 $ PROBLEM=eof-before-unescape.mustache
4147 $ echo " {{{" > $ PROBLEM
4248 $ mustache foo.json $ PROBLEM
49+ Template parse error:
4350 Line 2, character 0: ident expected.
4451 [3]
4552
4653 $ PROBLEM=eof-before-unescape.mustache
4754 $ echo " {{&" > $ PROBLEM
4855 $ mustache foo.json $ PROBLEM
56+ Template parse error:
4957 Line 2, character 0: ident expected.
5058 [3]
5159
5260 $ PROBLEM=eof-before-partial.mustache
5361 $ echo " {{> " > $ PROBLEM
5462 $ mustache foo.json $ PROBLEM
63+ Template parse error:
5564 Line 2, character 0: ident expected.
5665 [3]
5766
5867 $ PROBLEM=eof-in-comment.mustache
5968 $ echo " {{! non-terminated comment" > $ PROBLEM
6069 $ mustache foo.json $ PROBLEM
70+ Template parse error:
6171 Line 2, character 0: non-terminated comment.
6272 [3]
6373
@@ -67,12 +77,14 @@ Mismatches between opening and closing mustaches:
6777 $ PROBLEM=two-three.mustache
6878 $ echo " {{ foo }}}" > $ PROBLEM
6979 $ mustache foo.json $ PROBLEM
80+ Template parse error:
7081 Lines 1-2, characters 10-0: syntax error.
7182 [3]
7283
7384 $ PROBLEM=three-two.mustache
7485 $ echo " {{{ foo }}" > $ PROBLEM
7586 $ mustache foo.json $ PROBLEM
87+ Template parse error:
7688 Lines 1-2, characters 10-0: syntax error.
7789 [3]
7890
@@ -82,17 +94,20 @@ Mismatch between section-start and section-end:
8294 $ PROBLEM=foo-bar.mustache
8395 $ echo " {{# foo}} {{.}} {{/bar}}" > $PROBLEM
8496 $ mustache foo. json $ PROBLEM
97+ Template parse error:
8598 Lines 1 -2, characters 23 -0: Mismatched section ' foo' with ' bar' .
8699 [3 ]
87100
88101 $ PROBLEM= foo-not-closed. mustache
89102 $ echo " { {# foo}} {{.}} {{foo}}" > $PROBLEM
90103 $ mustache foo. json $ PROBLEM
104+ Template parse error:
91105 Line 2 , character 0 : syntax error.
92106 [3 ]
93107
94108 $ PROBLEM= wrong-nesting. mustache
95109 $ echo " { {# bar}} {{#foo}} {{.}} {{/bar}} {{/foo}}" > $PROBLEM
96110 $ mustache foo. json $ PROBLEM
111+ Template parse error:
97112 Lines 1 -2, characters 41 -0: Mismatched section ' foo' with ' bar' .
98113 [3 ]
0 commit comments