Skip to content

Commit

Permalink
Add new keywords to Spice lexer (#2336)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcauberer committed Feb 2, 2023
1 parent 54c6842 commit c9ca87f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pygments/lexers/spice.py
Expand Up @@ -38,11 +38,11 @@ class SpiceLexer(RegexLexer):
(r'/(\\\n)?[*](.|\n)*?[*](\\\n)?/', Comment.Multiline),
# keywords
(r'(import|as)\b', Keyword.Namespace),
(r'(f|p|type|struct|enum)\b', Keyword.Declaration),
(words(('if', 'else', 'for', 'foreach', 'while', 'break',
(r'(f|p|type|struct|interface|enum|alias|operator)\b', Keyword.Declaration),
(words(('if', 'else', 'for', 'foreach', 'do', 'while', 'break',
'continue', 'return', 'assert', 'thread', 'unsafe', 'ext',
'dll'), suffix=r'\b'), Keyword),
(words(('const', 'signed', 'unsigned', 'inline', 'public'),
(words(('const', 'signed', 'unsigned', 'inline', 'public', 'heap'),
suffix=r'\b'), Keyword.Pseudo),
(words(('new', 'switch', 'case', 'yield', 'stash', 'pick', 'sync',
'class'), suffix=r'\b'), Keyword.Reserved),
Expand Down

0 comments on commit c9ca87f

Please sign in to comment.