diff options
author | Marc Auberer <marc.auberer@chillibits.com> | 2023-02-02 20:29:13 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-02-02 20:29:13 +0100 |
commit | c9ca87f08531e2695543112589d4461e31d52546 (patch) | |
tree | ea5787286a4c4e7ec2e987fa420d36cbd8aa6cf8 | |
parent | 54c68421de5037e7e0e5e3168b90543966933b19 (diff) | |
download | pygments-git-c9ca87f08531e2695543112589d4461e31d52546.tar.gz |
Add new keywords to Spice lexer (#2336)
-rw-r--r-- | pygments/lexers/spice.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pygments/lexers/spice.py b/pygments/lexers/spice.py index 53f111b0..5847d063 100644 --- a/pygments/lexers/spice.py +++ b/pygments/lexers/spice.py @@ -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), |