mirror of
https://github.com/nvim-treesitter/nvim-treesitter.git
synced 2026-07-02 19:46:58 -04:00
36 lines
523 B
Scheme
36 lines
523 B
Scheme
;;; Highlighting for lua
|
|
|
|
;;; Builtins
|
|
;; Keywords
|
|
"local" @keyword
|
|
"if" @keyword
|
|
"then" @keyword
|
|
"else" @keyword
|
|
"elseif" @keyword
|
|
"end" @keyword
|
|
"return" @keyword
|
|
"do" @keyword
|
|
"while" @keyword
|
|
"repeat" @keyword
|
|
"for" @keyword
|
|
|
|
;; Operators
|
|
"~=" @operator
|
|
"==" @operator
|
|
"not" @operator
|
|
"and" @operator
|
|
"or" @operator
|
|
|
|
;; Constants
|
|
(false) @constant
|
|
(true) @constant
|
|
(nil) @constant
|
|
|
|
;; Nodes
|
|
(function "function" @function "end" @function)
|
|
(comment) @comment
|
|
(string) @string
|
|
(number) @constant
|
|
|
|
;; Error
|
|
(ERROR) @Error
|