diff options
author | Georg Brandl <georg@python.org> | 2014-09-16 13:09:41 +0200 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2014-09-16 13:09:41 +0200 |
commit | 5e5586a698e82c7b596ab2e47f035d2aa941b400 (patch) | |
tree | 44539e29bf8ef3523991b7b0f37804cb10fe06cb /pygments/lexers/jvm.py | |
parent | a54efd963ebd1a74eff5f1d6f7efcdd8895980e3 (diff) | |
download | pygments-5e5586a698e82c7b596ab2e47f035d2aa941b400.tar.gz |
fix global instantiation of GosuLexer.
Diffstat (limited to 'pygments/lexers/jvm.py')
-rw-r--r-- | pygments/lexers/jvm.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/pygments/lexers/jvm.py b/pygments/lexers/jvm.py index 0d16e2fd..d422f5fd 100644 --- a/pygments/lexers/jvm.py +++ b/pygments/lexers/jvm.py @@ -413,11 +413,11 @@ class GosuTemplateLexer(Lexer): aliases = ['gst'] filenames = ['*.gst'] mimetypes = ['text/x-gosu-template'] - lexer = GosuLexer() def get_tokens_unprocessed(self, text): + lexer = GosuLexer() stack = ['templateText'] - for item in self.lexer.get_tokens_unprocessed(text, stack): + for item in lexer.get_tokens_unprocessed(text, stack): yield item |