diff options
author | Tim Hatch <tim@timhatch.com> | 2012-03-09 12:05:34 -0800 |
---|---|---|
committer | Tim Hatch <tim@timhatch.com> | 2012-03-09 12:05:34 -0800 |
commit | 8ed5dcf34484d9c0418a2607b7ad0db5f40ab5e8 (patch) | |
tree | 947175713b8ac603bf515d8eb8bfc5c8e8097859 /pygments | |
parent | 9d519e510f887c337c7a715d80e07b15357d33dc (diff) | |
download | pygments-8ed5dcf34484d9c0418a2607b7ad0db5f40ab5e8.tar.gz |
Fix a data loss bug in antlr lexer
---
pygments/lexers/parsers.py | 2 +-
tests/examplefiles/antlr_throws | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
create mode 100644 tests/examplefiles/antlr_throws
Diffstat (limited to 'pygments')
-rw-r--r-- | pygments/lexers/parsers.py | 2 |
1 files changed, 1 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'), |