diff options
author | Gaurav Jain <gaurav@gauravjain.org> | 2014-05-16 23:36:27 -0400 |
---|---|---|
committer | Gaurav Jain <gaurav@gauravjain.org> | 2014-05-16 23:36:27 -0400 |
commit | 08efa68bf22fd1e9d4eddabdbee9818ebe066973 (patch) | |
tree | b54e0e2828b44430796df540026d48eb9d70b6cc | |
parent | 2af9819f9c0b308852a79a59ca0390de7a6eabe0 (diff) | |
download | pygments-08efa68bf22fd1e9d4eddabdbee9818ebe066973.tar.gz |
Only allow one shebang in Groovy files
-rw-r--r-- | pygments/lexers/jvm.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pygments/lexers/jvm.py b/pygments/lexers/jvm.py index 259905e9..51f17ae0 100644 --- a/pygments/lexers/jvm.py +++ b/pygments/lexers/jvm.py @@ -438,7 +438,7 @@ class GroovyLexer(RegexLexer): tokens = { 'root': [ # Groovy allows a file to start with a shebang - (r'#!(.*?)$', Comment.Preproc), + (r'#!(.*?)$', Comment.Preproc, 'base'), (r'', Text, 'base'), ], 'base': [ |