Skip to content

Commit

Permalink
为MT高亮增加null环境变量的高亮
Browse files Browse the repository at this point in the history
  • Loading branch information
A4-Tacks committed Jul 4, 2024
1 parent 2ed9c35 commit 8f37053
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion syntax/MT-Manager/MindustryLogic-compiled.mtsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"arg-body": /(?:[^ \t"#;\n]+)/
"hex-oct": /(?:0(?:x-?[\da-fA-F]+|b-?[01]+))/
"normal-number": /(?:-?\d+(?:\.\d+|e[+\-]?\d+)?)/
"number": /(true|false|/ + include("hex-oct") + /|/ + include("normal-number") + /)/
"number": /(true|false|null|/ + include("hex-oct") + /|/ + include("normal-number") + /)/
"val": /(?:/ + include("string") + /|/ + include("number") + /|/ + include("arg-body") + /)/
"var": /((?:/ + include("raw-string") + /|/ + include("arg-body") + /))/
"fill": /((?:/ + include("raw-string") + /|/ + include("arg-body") + /))/
Expand Down
2 changes: 1 addition & 1 deletion syntax/MT-Manager/MindustryLogic.mtsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@

hex-oct = (?:/0(?:x-?[\da-fA-F]+|b-?[01]+)/)
normal-number = (?:/-?\d+(?:\.\d+|e[+\-]?\d+)?/)
number = ($number /true|false/ | @hex-oct | @normal-number)
number = ($number /true|false|null/ | @hex-oct | @normal-number)
val = (?:@string | @number | @arg-body)
var = (?:@raw-string | @arg-body)
$0: "resultVar"
Expand Down

0 comments on commit 8f37053

Please sign in to comment.