Skip to content

Commit bfa5963

Browse files
Sainanwell-in-that-case
authored andcommitted
Syntax Highlighting: Add try catch
1 parent aeba459 commit bfa5963

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/theme/pluto.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Prism.languages.pluto = {
1313
},
1414
'boolean': /\b(?:true|false)\b/,
1515
'number': /\b([\d][\d_]+|(0x[a-f\d]+)|(0b[01]+))(?:\.[a-f\d]*)?(?:p[+-]?\d+)?\b|\b\d+(?:\.\B|(?:\.\d*)?(?:e[+-]?\d+)?\b)|\B\.\d+(?:e[+-]?\d+)?\b/i,
16-
'keyword': /\$|\b(?:and|as|class|pluto_class|enum|begin|break|do|else|elseif|end|for|function|goto|if|in|local|new|not|or|repeat|return|static|then|until|while|continue|switch|case|default|pluto_switch|pluto_continue|extends|export|pluto_export|pluto_use|public|private|const)\b/,
16+
'keyword': /\$|\b(?:and|as|class|pluto_class|enum|begin|break|do|else|elseif|end|for|function|goto|if|in|local|new|not|or|repeat|return|static|then|until|while|continue|switch|case|default|pluto_switch|pluto_continue|extends|export|pluto_export|pluto_use|public|private|const|try|catch|pluto_try|pluto_catch)\b/,
1717
'variable': /\b(?:self|parent|pluto_parent)\b/,
1818
'operator': [
1919
/[-+*%^&|#]|\/\/?|<[<=]?|>[>=]?|[=~]=?|\:=|\?|(?<!\w)\:|\?\.|instanceof/,

0 commit comments

Comments
 (0)