-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Handle invalid escaped quotes in tags more gracefully
Don't break the entire parsing of the template afterwards by treating escaped quotes which aren't already in quotes as not being quotes
- Loading branch information
1 parent
69379e5
commit d7831b1
Showing
3 changed files
with
30 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 7 additions & 0 deletions
7
src/test/resources/parse/tokenizer/tag-with-all-escaped-quotes.jinja
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{# This print tag is invalid, but it should not cause the rest of the template to break #} | ||
{% print \"foo\" %} | ||
Start | ||
{% if true %} | ||
The dog says: "Woof!" | ||
{% endif %} | ||
End |