mirror of
https://github.com/elladunbar/tree-sitter-zanscript.git
synced 2025-11-05 15:19:55 -06:00
First commit
This commit is contained in:
commit
8e99061065
47 changed files with 9107 additions and 0 deletions
67
queries/highlights.scm
Normal file
67
queries/highlights.scm
Normal file
|
|
@ -0,0 +1,67 @@
|
|||
; 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
|
||||
|
||||
[
|
||||
"+"
|
||||
"-"
|
||||
"*"
|
||||
"/"
|
||||
"<"
|
||||
">"
|
||||
"="
|
||||
] @operator
|
||||
|
||||
"," @punctuation.delimiter
|
||||
|
||||
[
|
||||
"("
|
||||
")"
|
||||
] @punctuation.bracket
|
||||
|
||||
(comment) @comment
|
||||
(variable) @variable
|
||||
(match) @constant.macro
|
||||
(identifier) @constant.macro
|
||||
(number) @number
|
||||
(string) @string
|
||||
Loading…
Add table
Add a link
Reference in a new issue