@@ -4,61 +4,73 @@ Delimiter problems:
44 $ PROBLEM= no-closing-mustache. mustache
55 $ echo " { {foo" > $ PROBLEM
66 $ mustache foo.json $ PROBLEM
7- Line 2, character 0: syntax error.
7+ Template parse error:
8+ File " no-closing-mustache. mustache" , line 2, character 0: syntax error.
89 [3]
910
1011 $ PROBLEM=one-closing-mustache.mustache
1112 $ echo " {{foo}" > $ PROBLEM
1213 $ mustache foo.json $ PROBLEM
13- Lines 1-2, characters 6-0: syntax error.
14+ Template parse error:
15+ File " one-closing-mustache. mustache" , lines 1-2, characters 6-0:
16+ syntax error.
1417 [3]
1518
1619 $ PROBLEM=eof-before-variable.mustache
1720 $ echo " {{" > $ PROBLEM
1821 $ mustache foo.json $ PROBLEM
19- Line 2, character 0: ident expected.
22+ Template parse error:
23+ File " eof-before-variable. mustache" , line 2, character 0: ident expected.
2024 [3]
2125
2226 $ PROBLEM=eof-before-section.mustache
2327 $ echo " {{# " > $PROBLEM
2428 $ mustache foo. json $ PROBLEM
25- Line 2 , character 0 : ident expected.
29+ Template parse error:
30+ File " eof-before-section.mustache" , line 2 , character 0 : ident expected.
2631 [3 ]
2732
2833 $ PROBLEM= eof-before-section-end. mustache
2934 $ echo " { {# foo}} {{.}} {{/" > $PROBLEM
3035 $ mustache foo. json $ PROBLEM
31- Line 2 , character 0 : ident expected.
36+ Template parse error:
37+ File " eof-before-section-end.mustache" , line 2 , character 0 : ident expected.
3238 [3 ]
3339
3440 $ PROBLEM= eof-before-inverted-section. mustache
3541 $ echo " { {^ " > $ PROBLEM
3642 $ mustache foo.json $ PROBLEM
37- Line 2, character 0: ident expected.
43+ Template parse error:
44+ File " eof-before-inverted-section. mustache" , line 2, character 0:
45+ ident expected.
3846 [3]
3947
4048 $ PROBLEM=eof-before-unescape.mustache
4149 $ echo " {{{" > $ PROBLEM
4250 $ mustache foo.json $ PROBLEM
43- Line 2, character 0: ident expected.
51+ Template parse error:
52+ File " eof-before-unescape. mustache" , line 2, character 0: ident expected.
4453 [3]
4554
4655 $ PROBLEM=eof-before-unescape.mustache
4756 $ echo " {{&" > $ PROBLEM
4857 $ mustache foo.json $ PROBLEM
49- Line 2, character 0: ident expected.
58+ Template parse error:
59+ File " eof-before-unescape. mustache" , line 2, character 0: ident expected.
5060 [3]
5161
5262 $ PROBLEM=eof-before-partial.mustache
5363 $ echo " {{> " > $ PROBLEM
5464 $ mustache foo.json $ PROBLEM
55- Line 2, character 0: ident expected.
65+ Template parse error:
66+ File " eof-before-partial. mustache" , line 2, character 0: ident expected.
5667 [3]
5768
5869 $ PROBLEM=eof-in-comment.mustache
5970 $ echo " {{! non-terminated comment" > $ PROBLEM
6071 $ mustache foo.json $ PROBLEM
61- Line 2, character 0: non-terminated comment.
72+ Template parse error:
73+ File " eof-in-comment. mustache" , line 2, character 0: non-terminated comment.
6274 [3]
6375
6476
@@ -67,13 +79,15 @@ Mismatches between opening and closing mustaches:
6779 $ PROBLEM=two-three.mustache
6880 $ echo " {{ foo }}}" > $ PROBLEM
6981 $ mustache foo.json $ PROBLEM
70- Lines 1-2, characters 10-0: syntax error.
82+ Template parse error:
83+ File " two-three. mustache" , lines 1-2, characters 10-0: syntax error.
7184 [3]
7285
7386 $ PROBLEM=three-two.mustache
7487 $ echo " {{{ foo }}" > $ PROBLEM
7588 $ mustache foo.json $ PROBLEM
76- Lines 1-2, characters 10-0: syntax error.
89+ Template parse error:
90+ File " three-two. mustache" , lines 1-2, characters 10-0: syntax error.
7791 [3]
7892
7993
@@ -82,17 +96,22 @@ Mismatch between section-start and section-end:
8296 $ PROBLEM=foo-bar.mustache
8397 $ echo " {{# foo}} {{.}} {{/bar}}" > $PROBLEM
8498 $ mustache foo. json $ PROBLEM
85- Fatal error: exception Mustache_types. Invalid_template(" Mismatched section foo with bar" )
86- [2 ]
99+ Template parse error:
100+ File " foo-bar.mustache" , lines 1 -2, characters 23 -0:
101+ Section mismatch: {{# foo}} is closed by {{/bar}}.
102+ [3 ]
87103
88104 $ PROBLEM= foo-not-closed. mustache
89105 $ echo " { {# foo}} {{.}} {{foo}}" > $PROBLEM
90106 $ mustache foo. json $ PROBLEM
91- Line 2 , character 0 : syntax error.
107+ Template parse error:
108+ File " foo-not-closed.mustache" , line 2 , character 0 : syntax error.
92109 [3 ]
93110
94111 $ PROBLEM= wrong-nesting. mustache
95112 $ echo " { {# bar}} {{#foo}} {{.}} {{/bar}} {{/foo}}" > $PROBLEM
96113 $ mustache foo. json $ PROBLEM
97- Fatal error: exception Mustache_types. Invalid_template(" Mismatched section foo with bar" )
98- [2 ]
114+ Template parse error:
115+ File " wrong-nesting.mustache" , lines 1 -2, characters 41 -0:
116+ Section mismatch: {{# foo}} is closed by {{/bar}}.
117+ [3 ]
0 commit comments