-
Notifications
You must be signed in to change notification settings - Fork 739
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Twig/Jinja: incorrect recognition of some special tokens like key…
…words (#1949) `Twig` and `Jinja` lexers share some variables as class variables. Both classes define `keywords` method like this: ``` class Jinja def self.keywords @@Keywords ||= ... end end class Twig < Jinja def self.keywords @@Keywords ||= ... end end ``` If `Twig.keywords` is called before `Jinja.keywords`, `@@keywords` is set to Twig's and both classes return the same value. If not, `@@keywords` is initialized to Jinja's.
- Loading branch information
Showing
3 changed files
with
29 additions
and
19 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