@@ -5,70 +5,72 @@ Delimiter problems:
55 $ echo " { {foo" > $ PROBLEM
66 $ mustache foo.json $ PROBLEM
77 Template parse error:
8- Line 2, character 0: syntax error.
8+ File " no-closing-mustache . mustache " , line 2, character 0: syntax error.
99 [3]
1010
1111 $ PROBLEM=one-closing-mustache.mustache
1212 $ echo " {{foo}" > $ PROBLEM
1313 $ mustache foo.json $ PROBLEM
1414 Template parse error:
15- Lines 1-2, characters 6-0: syntax error.
15+ File " one-closing-mustache. mustache" , lines 1-2, characters 6-0:
16+ syntax error.
1617 [3]
1718
1819 $ PROBLEM=eof-before-variable.mustache
1920 $ echo " {{" > $ PROBLEM
2021 $ mustache foo.json $ PROBLEM
2122 Template parse error:
22- Line 2, character 0: ident expected.
23+ File " eof-before-variable . mustache " , line 2, character 0: ident expected.
2324 [3]
2425
2526 $ PROBLEM=eof-before-section.mustache
2627 $ echo " {{# " > $PROBLEM
2728 $ mustache foo. json $ PROBLEM
2829 Template parse error:
29- Line 2 , character 0 : ident expected.
30+ File " eof-before-section.mustache " , line 2 , character 0 : ident expected.
3031 [3 ]
3132
3233 $ PROBLEM= eof-before-section-end. mustache
3334 $ echo " { {# foo}} {{.}} {{/" > $PROBLEM
3435 $ mustache foo. json $ PROBLEM
3536 Template parse error:
36- Line 2 , character 0 : ident expected.
37+ File " eof-before-section-end.mustache " , line 2 , character 0 : ident expected.
3738 [3 ]
3839
3940 $ PROBLEM= eof-before-inverted-section. mustache
4041 $ echo " { {^ " > $ PROBLEM
4142 $ mustache foo.json $ PROBLEM
4243 Template parse error:
43- Line 2, character 0: ident expected.
44+ File " eof-before-inverted-section. mustache" , line 2, character 0:
45+ ident expected.
4446 [3]
4547
4648 $ PROBLEM=eof-before-unescape.mustache
4749 $ echo " {{{" > $ PROBLEM
4850 $ mustache foo.json $ PROBLEM
4951 Template parse error:
50- Line 2, character 0: ident expected.
52+ File " eof-before-unescape . mustache " , line 2, character 0: ident expected.
5153 [3]
5254
5355 $ PROBLEM=eof-before-unescape.mustache
5456 $ echo " {{&" > $ PROBLEM
5557 $ mustache foo.json $ PROBLEM
5658 Template parse error:
57- Line 2, character 0: ident expected.
59+ File " eof-before-unescape . mustache " , line 2, character 0: ident expected.
5860 [3]
5961
6062 $ PROBLEM=eof-before-partial.mustache
6163 $ echo " {{> " > $ PROBLEM
6264 $ mustache foo.json $ PROBLEM
6365 Template parse error:
64- Line 2, character 0: ident expected.
66+ File " eof-before-partial . mustache " , line 2, character 0: ident expected.
6567 [3]
6668
6769 $ PROBLEM=eof-in-comment.mustache
6870 $ echo " {{! non-terminated comment" > $ PROBLEM
6971 $ mustache foo.json $ PROBLEM
7072 Template parse error:
71- Line 2, character 0: non-terminated comment.
73+ File " eof-in-comment . mustache " , line 2, character 0: non-terminated comment.
7274 [3]
7375
7476
@@ -78,14 +80,14 @@ Mismatches between opening and closing mustaches:
7880 $ echo " {{ foo }}}" > $ PROBLEM
7981 $ mustache foo.json $ PROBLEM
8082 Template parse error:
81- Lines 1-2, characters 10-0: syntax error.
83+ File " two-three . mustache " , lines 1-2, characters 10-0: syntax error.
8284 [3]
8385
8486 $ PROBLEM=three-two.mustache
8587 $ echo " {{{ foo }}" > $ PROBLEM
8688 $ mustache foo.json $ PROBLEM
8789 Template parse error:
88- Lines 1-2, characters 10-0: syntax error.
90+ File " three-two . mustache " , lines 1-2, characters 10-0: syntax error.
8991 [3]
9092
9193
@@ -95,19 +97,21 @@ Mismatch between section-start and section-end:
9597 $ echo " {{# foo}} {{.}} {{/bar}}" > $PROBLEM
9698 $ mustache foo. json $ PROBLEM
9799 Template parse error:
98- Lines 1 -2, characters 23 -0: Mismatched section ' foo' with ' bar' .
100+ File " foo-bar.mustache" , lines 1 -2, characters 23 -0:
101+ Mismatched section ' foo' with ' bar' .
99102 [3 ]
100103
101104 $ PROBLEM= foo-not-closed. mustache
102105 $ echo " { {# foo}} {{.}} {{foo}}" > $PROBLEM
103106 $ mustache foo. json $ PROBLEM
104107 Template parse error:
105- Line 2 , character 0 : syntax error.
108+ File " foo-not-closed.mustache " , line 2 , character 0 : syntax error.
106109 [3 ]
107110
108111 $ PROBLEM= wrong-nesting. mustache
109112 $ echo " { {# bar}} {{#foo}} {{.}} {{/bar}} {{/foo}}" > $PROBLEM
110113 $ mustache foo. json $ PROBLEM
111114 Template parse error:
112- Lines 1 -2, characters 41 -0: Mismatched section ' foo' with ' bar' .
115+ File " wrong-nesting.mustache" , lines 1 -2, characters 41 -0:
116+ Mismatched section ' foo' with ' bar' .
113117 [3 ]
0 commit comments