mirror of https://github.com/Wilfred/difftastic/
parent
50d90f6736
commit
c2df185d49
@ -1,76 +0,0 @@
|
|||||||
;; Keywords
|
|
||||||
|
|
||||||
[
|
|
||||||
"goto"
|
|
||||||
"in"
|
|
||||||
"local"
|
|
||||||
"return"
|
|
||||||
"and"
|
|
||||||
"not"
|
|
||||||
"or"
|
|
||||||
"function"
|
|
||||||
"if"
|
|
||||||
"elseif"
|
|
||||||
"else"
|
|
||||||
"then"
|
|
||||||
"for"
|
|
||||||
"do"
|
|
||||||
"end"
|
|
||||||
"repeat"
|
|
||||||
"until"
|
|
||||||
"while"
|
|
||||||
] @keyword
|
|
||||||
|
|
||||||
[
|
|
||||||
"+"
|
|
||||||
"-"
|
|
||||||
"*"
|
|
||||||
"/"
|
|
||||||
"%"
|
|
||||||
"^"
|
|
||||||
"#"
|
|
||||||
"=="
|
|
||||||
"~="
|
|
||||||
"<="
|
|
||||||
">="
|
|
||||||
"<"
|
|
||||||
">"
|
|
||||||
"="
|
|
||||||
"&"
|
|
||||||
"~"
|
|
||||||
"|"
|
|
||||||
"<<"
|
|
||||||
">>"
|
|
||||||
"//"
|
|
||||||
".."
|
|
||||||
] @operator
|
|
||||||
|
|
||||||
;; Variables
|
|
||||||
|
|
||||||
(identifier) @variable
|
|
||||||
|
|
||||||
((identifier) @variable.builtin
|
|
||||||
(#match? @variable.builtin "self"))
|
|
||||||
|
|
||||||
;; Constants
|
|
||||||
|
|
||||||
((identifier) @constant
|
|
||||||
(#match? @constant "^[A-Z][A-Z_0-9]*$"))
|
|
||||||
|
|
||||||
(nil) @constant.builtin
|
|
||||||
|
|
||||||
[
|
|
||||||
(false)
|
|
||||||
(true)
|
|
||||||
] @boolean
|
|
||||||
|
|
||||||
;; Others
|
|
||||||
|
|
||||||
(comment) @comment
|
|
||||||
|
|
||||||
(number) @number
|
|
||||||
|
|
||||||
(string) @string
|
|
||||||
|
|
||||||
;; Error
|
|
||||||
(ERROR) @error
|
|
||||||
@ -0,0 +1 @@
|
|||||||
|
../tree-sitter-lua/queries/highlights.scm
|
||||||
Loading…
Reference in New Issue