Skip to content

Commit c6574e6

Browse files
authoredOct 5, 2021
Maxscript: Fixed booleans not being highlighted (#3134)
1 parent a28a86a commit c6574e6

File tree

4 files changed

+5
-7
lines changed

4 files changed

+5
-7
lines changed
 

‎components/prism-maxscript.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ Prism.languages.maxscript = {
2525
alias: 'attr-name'
2626
},
2727

28-
'keyword': /\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|off|on|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i,
28+
'keyword': /\b(?:about|and|animate|as|at|attributes|by|case|catch|collect|continue|coordsys|do|else|exit|fn|for|from|function|global|if|in|local|macroscript|mapped|max|not|of|or|parameters|persistent|plugin|rcmenu|return|rollout|set|struct|then|throw|to|tool|try|undo|utility|when|where|while|with)\b/i,
2929
'boolean': /\b(?:false|off|on|true)\b/,
3030

3131
'time': {

‎components/prism-maxscript.min.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
11
true false
2+
on off
23

34
----------------------------------------------------
45

56
[
6-
["boolean", "true"], ["boolean", "false"]
7+
["boolean", "true"], ["boolean", "false"],
8+
["boolean", "on"], ["boolean", "off"]
79
]

‎tests/languages/maxscript/keyword_feature.test

-4
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,6 @@ mapped;
2626
max;
2727
not;
2828
of;
29-
off;
30-
on;
3129
or;
3230
parameters;
3331
persistent;
@@ -80,8 +78,6 @@ with;
8078
["keyword", "max"], ["punctuation", ";"],
8179
["keyword", "not"], ["punctuation", ";"],
8280
["keyword", "of"], ["punctuation", ";"],
83-
["keyword", "off"], ["punctuation", ";"],
84-
["keyword", "on"], ["punctuation", ";"],
8581
["keyword", "or"], ["punctuation", ";"],
8682
["keyword", "parameters"], ["punctuation", ";"],
8783
["keyword", "persistent"], ["punctuation", ";"],

0 commit comments

Comments
 (0)
Please sign in to comment.