diff options
Diffstat (limited to 'pygments/lexer.py')
-rw-r--r-- | pygments/lexer.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/pygments/lexer.py b/pygments/lexer.py index e0230f1d..687d19e3 100644 --- a/pygments/lexer.py +++ b/pygments/lexer.py @@ -485,7 +485,9 @@ class RegexLexerMeta(LexerMeta): str(tdef))) continue if isinstance(tdef, _inherit): - # processed already + # should be processed already, but may not in the case of: + # 1. the state has no counterpart in any parent + # 2. the state includes more than one 'inherit' continue if isinstance(tdef, default): new_state = cls._process_new_state(tdef.state, unprocessed, processed) |