-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Support Jinja multi-line comment syntax
Previously, `{# ... #}` comments were only recognized if they were opened and closed on the same line. This commit allows them to span multiple lines. As with the other comment tags, anything inside is ignored. Thanks to @notpushkin for pointing this out! Ref. #22
- Loading branch information
Showing
3 changed files
with
27 additions
and
6 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
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 |
---|---|---|
|
@@ -96,3 +96,11 @@ | |
<a{% if %} class=""{% endif %}> | ||
Click here! | ||
</a> | ||
|
||
|
||
<!-- Multiline Jinja comment --> | ||
{# | ||
,-._|\ | ||
/ .\ | ||
\_,--._/ | ||
#} |