diff --git a/pygments/pygments_extk/__init__.py b/pygments/pygments_extk/__init__.py index d6c54a4..48d62ef 100644 --- a/pygments/pygments_extk/__init__.py +++ b/pygments/pygments_extk/__init__.py @@ -17,7 +17,7 @@ class ExtKLexer(RegexLexer): (r'//.*?\n', Comment.Single), ], 'keywords': [ - (words(('kmod', 'endkm', 'including', 'subsort', 'eq', 'ceq', 'load', 'when'), suffix = r'\b'), Keyword), + (words(('kmod', 'endkm', 'including', 'subsort', 'eq', 'ceq', 'load', 'when', 'requires', 'module', 'endmodule', 'imports'), suffix = r'\b'), Keyword), (words(('syntax', 'sort', 'op', 'rule'), suffix = r'\b'), Keyword.Declaration), (words(('If', 'then', 'else', 'Let', 'Do', "Return"), suffix = r'\b'), Keyword), ], @@ -25,8 +25,8 @@ class ExtKLexer(RegexLexer): (r'"(\\\\|\\"|[^"])*"', String), ], 'identifiers': [ - (r'[$@%.#]*[a-zA-Z_][a-zA-Z_0-9]*', Name.Variable), - (r'', Name.Tag), + (r'[$@%.#]*[a-zA-Z_][a-zA-Z_0-9-]*', Name.Variable), + (r'', Name.Tag), ], 'numbers': [ (r'[+-]?[0-9]+', Number.Integer),