From 8eb17ae0541cfaa1140f75358251450bd41c8dfb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Saccoccio?= Date: Thu, 13 May 2021 12:08:41 +0200 Subject: [PATCH] fixed typo --- pygments/lexers/grammar_notation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygments/lexers/grammar_notation.py b/pygments/lexers/grammar_notation.py index 79c02e38..910201cd 100644 --- a/pygments/lexers/grammar_notation.py +++ b/pygments/lexers/grammar_notation.py @@ -117,7 +117,7 @@ class AbnfLexer(RegexLexer): (words(_core_rules, suffix=r'\b'), Keyword), # nonterminals (ALPHA *(ALPHA / DIGIT / "-")) - (r'[a-zA-Z][a-zA-Z0-9-]+\b', Name.Class), + (r'[a-zA-Z][a-zA-Z0-9-]*\b', Name.Class), # operators (r'(=/|=|/)', Operator), -- 2.33.0