diff options
Diffstat (limited to 'queries/lua')
| -rw-r--r-- | queries/lua/highlights.scm | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/queries/lua/highlights.scm b/queries/lua/highlights.scm new file mode 100644 index 000000000..6efdece7a --- /dev/null +++ b/queries/lua/highlights.scm @@ -0,0 +1,36 @@ +;;; 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 |
