mirror of
https://github.com/elladunbar/tree-sitter-zanscript.git
synced 2025-11-05 15:19:55 -06:00
More case insensitivity and additional function highlighting
This commit is contained in:
parent
0b9a232e1b
commit
6142d7d7f4
6 changed files with 77943 additions and 2439 deletions
|
|
@ -1,46 +1,17 @@
|
|||
; highlights.scm
|
||||
|
||||
[
|
||||
"DEFINE"
|
||||
"define"
|
||||
"Define"
|
||||
] @keyword.directive.define
|
||||
|
||||
[
|
||||
"INCLUDE"
|
||||
"include"
|
||||
"Include"
|
||||
] @keyword.import
|
||||
|
||||
[
|
||||
"ACTION"
|
||||
"action"
|
||||
"Action"
|
||||
"COMPLETE"
|
||||
"complete"
|
||||
"Complete"
|
||||
] @keyword.function
|
||||
|
||||
[
|
||||
"IF"
|
||||
"if"
|
||||
"If"
|
||||
"ELSE"
|
||||
"else"
|
||||
"Else"
|
||||
"ENDIF"
|
||||
"endif"
|
||||
"Endif"
|
||||
] @keyword.conditional
|
||||
|
||||
[
|
||||
"WHILE"
|
||||
"while"
|
||||
"While"
|
||||
"ENDWHILE"
|
||||
"endwhile"
|
||||
"Endwhile"
|
||||
] @keyword.repeat
|
||||
(comment) @comment
|
||||
(variable) @variable
|
||||
(match) @constant.macro
|
||||
(identifier) @constant
|
||||
(number) @number
|
||||
(string) @string
|
||||
(function name: (identifier) @function.builtin)
|
||||
(action name: (identifier) @function)
|
||||
(detector invoked_action: (identifier) @function.call)
|
||||
(invoke invoked_action: (identifier) @function.call)
|
||||
(select first_action: (identifier) @function.call)
|
||||
(select second_action: (identifier) @function.call)
|
||||
|
||||
[
|
||||
"+"
|
||||
|
|
@ -59,11 +30,18 @@
|
|||
")"
|
||||
] @punctuation.bracket
|
||||
|
||||
(comment) @comment
|
||||
(variable) @variable
|
||||
(match) @constant.macro
|
||||
(identifier) @constant
|
||||
(number) @number
|
||||
(string) @string
|
||||
(function name: (identifier) @function.call)
|
||||
(action name: (identifier) @function)
|
||||
; case insensitive
|
||||
|
||||
(define_insensitive) @keyword.directive.define
|
||||
(include_insensitive) @keyword.import
|
||||
(action_insensitive) @keyword.function
|
||||
(complete_insensitive) @keyword.function
|
||||
(if_insensitive) @keyword.conditional
|
||||
(else_insensitive) @keyword.conditional
|
||||
(elseif_insensitive) @keyword.conditional
|
||||
(endif_insensitive) @keyword.conditional
|
||||
(while_insensitive) @keyword.repeat
|
||||
(endwhile_insensitive) @keyword.repeat
|
||||
(detector_insensitive) @function.builtin
|
||||
(invoke_insensitive) @function.builtin
|
||||
(select_insensitive) @function.builtin
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue