-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: resolve recursion limit issue in Nunjucks syntax (#27)
- Loading branch information
1 parent
ef3c78d
commit 1485921
Showing
4 changed files
with
63 additions
and
75 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
The Nunjucks package has been successfully updated to version 2.0.3 | ||
|
||
Fixes: | ||
- resolved recursion limit issue ("Apparent recursion within a with_prototype action: 25000 context sanity limit hit") | ||
- improved compatibility with HTML syntax highlighting | ||
|
||
|
||
Please report issues here: https://github.com/alsolovyev/Nunjucks/issues | ||
Created by janeRivas <[email protected]> |
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 |
---|---|---|
@@ -1,34 +1,13 @@ | ||
%YAML 1.2 | ||
--- | ||
name: Nunjucks PHP | ||
version: 2 | ||
scope: text.html.njk.php | ||
extends: Packages/PHP/PHP.sublime-syntax | ||
|
||
|
||
contexts: | ||
main: | ||
- match: '' | ||
push: scope:text.html.njk | ||
with_prototype: | ||
# | ||
# PHP | ||
# | ||
- match: '<\?(?i:php|=)?(?![^?]*\?>)' | ||
scope: punctuation.section.embedded.begin.php | ||
push: | ||
- meta_content_scope: source.php | ||
- include: 'scope:source.php' | ||
with_prototype: | ||
- match: (?=\?>)(\?>) | ||
captures: | ||
0: punctuation.section.embedded.end.php | ||
pop: true | ||
- meta_prepend: false | ||
- include: Nunjucks.sublime-syntax | ||
|
||
- match: '<\?(?i:php|=)?' | ||
scope: punctuation.section.embedded.begin.php | ||
push: | ||
- meta_content_scope: source.php.njk | ||
- include: 'scope:source.php' | ||
with_prototype: | ||
- match: (?=\?>)(\?>) | ||
captures: | ||
0: punctuation.section.embedded.end.php | ||
pop: true |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
{ | ||
"install": "Messages/install.txt", | ||
"2.0.1": "Messages/2.0.1.txt" | ||
"2.0.1": "Messages/2.0.1.txt", | ||
"2.0.3": "Messages/2.0.3.txt" | ||
} |