diff options
-rw-r--r-- | pygments/lexers/parsers.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pygments/lexers/parsers.py b/pygments/lexers/parsers.py index b8d0ff7e..ad6ad71b 100644 --- a/pygments/lexers/parsers.py +++ b/pygments/lexers/parsers.py @@ -815,6 +815,7 @@ class EbnfLexer(RegexLexer): (r'[\[\]{}(),|]', Punctuation), (r'-', Operator), (r';', Punctuation, '#pop'), + (r'\.', Punctuation, '#pop'), ], 'whitespace': [ (r'\s+', Text), @@ -829,6 +830,6 @@ class EbnfLexer(RegexLexer): (r'[*)]', Comment.Multiline), ], 'identifier': [ - (r'([a-zA-Z][a-zA-Z0-9 \-]*)', Keyword), + (r'([a-zA-Z][a-zA-Z0-9_ \-]*)', Keyword), ], } |