summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--pygments/lexers/parsers.py2
-rw-r--r--tests/examplefiles/antlr_throws1
2 files changed, 2 insertions, 1 deletions
diff --git a/pygments/lexers/parsers.py b/pygments/lexers/parsers.py
index 48955697..2b5f954f 100644
--- a/pygments/lexers/parsers.py
+++ b/pygments/lexers/parsers.py
@@ -393,7 +393,7 @@ class AntlrLexer(RegexLexer):
# throwsSpec
(r'(throws)(\s+)(' + _id + ')',
bygroups(Keyword, Whitespace, Name.Label)),
- (r'(?:(,)(\s*)(' + _id + '))+',
+ (r'(,)(\s*)(' + _id + ')',
bygroups(Punctuation, Whitespace, Name.Label)), # Additional throws
# optionsSpec
(r'options\b', Keyword, 'options'),
diff --git a/tests/examplefiles/antlr_throws b/tests/examplefiles/antlr_throws
new file mode 100644
index 00000000..816d8914
--- /dev/null
+++ b/tests/examplefiles/antlr_throws
@@ -0,0 +1 @@
+public f throws a, b, c : x ;