diff options
| author | Thomas Vigouroux <tomvig38@gmail.com> | 2020-04-20 16:18:02 +0200 |
|---|---|---|
| committer | Thomas Vigouroux <tomvig38@gmail.com> | 2020-04-22 22:02:42 +0200 |
| commit | d05728e155ced9a815bb3f6fc9e8004093beb3d3 (patch) | |
| tree | d97aa90a327d54e1099694dcf01b847b033f3b27 /queries/lua/highlights.scm | |
| parent | 8bb53c93d050cbc8c52db6972300de650c34b3a7 (diff) | |
feat: syntax highlighting
Diffstat (limited to 'queries/lua/highlights.scm')
| -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 00000000..6efdece7 --- /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 |
