We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 106064d commit 954763cCopy full SHA for 954763c
src/theme/pluto.js
@@ -1,6 +1,6 @@
1
Prism.languages.pluto = {
2
'comment': /^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,
3
- 'attr-name': /(?<=(function|class|extends)\s)[\w:]+/,
+ 'attr-name': /(?<=(function|class|extends|enum)\s)(?!begin)(?!class)[\w:]+/,
4
'keyword': /\$(define\b)?|\b(?:and|as|class|pluto_class|enum|begin|break|do|else|elseif|end|for|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|try|catch|pluto_try|pluto_catch|global)\b/,
5
'function': [
6
/\b(?!in\s)(?!\d)(?!return)(?!case)(?!function)(?!local)(?!new)\w+(?=\s*(?:\??\())/, // func()
0 commit comments