summaryrefslogtreecommitdiff
path: root/pygments/lexers/jvm.py
diff options
context:
space:
mode:
authorGaurav Jain <gaurav@gauravjain.org>2014-05-16 23:36:27 -0400
committerGaurav Jain <gaurav@gauravjain.org>2014-05-16 23:36:27 -0400
commit08efa68bf22fd1e9d4eddabdbee9818ebe066973 (patch)
treeb54e0e2828b44430796df540026d48eb9d70b6cc /pygments/lexers/jvm.py
parent2af9819f9c0b308852a79a59ca0390de7a6eabe0 (diff)
downloadpygments-08efa68bf22fd1e9d4eddabdbee9818ebe066973.tar.gz
Only allow one shebang in Groovy files
Diffstat (limited to 'pygments/lexers/jvm.py')
-rw-r--r--pygments/lexers/jvm.py2
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': [