summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Auberer <marc.auberer@chillibits.com>2023-02-02 20:29:13 +0100
committerGitHub <noreply@github.com>2023-02-02 20:29:13 +0100
commitc9ca87f08531e2695543112589d4461e31d52546 (patch)
treeea5787286a4c4e7ec2e987fa420d36cbd8aa6cf8
parent54c68421de5037e7e0e5e3168b90543966933b19 (diff)
downloadpygments-git-c9ca87f08531e2695543112589d4461e31d52546.tar.gz
Add new keywords to Spice lexer (#2336)
-rw-r--r--pygments/lexers/spice.py6
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),