Skip to content

Commit 81fc093

Browse files
Sainanwell-in-that-case
authored andcommitted
Fix 'not' before string being highlighted as function call
1 parent a8022f7 commit 81fc093

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
@@ -2,7 +2,7 @@ Prism.languages.pluto = {
22
'comment': /^#!.+|--(?:\[(=*)\[[\s\S]*?\]\1\]|.*)/m,
33
'attr-name': /(?<=(function|class|extends)\s)[\w:]+/,
44
'function': [
5-
/\b(?!in\s)(?!\d)(?!return)(?!case)(?!function)(?!local)\w+(?=\s*(?:\??[({"]))/,
5+
/\b(?!in\s)(?!\d)(?!return)(?!case)(?!function)(?!local)(?!not)\w+(?=\s*(?:\??[({"]))/,
66
/\b(function|enum|class)\b/,
77
/\b(debug|table|string|number|io|os|coroutine|_VERSION|_PVERSION|_PSOUP)\b/, // standard library + type hints
88
],

0 commit comments

Comments
 (0)