diff options
| author | Santos Gallegos <stsewd@protonmail.com> | 2020-08-03 21:40:23 -0500 |
|---|---|---|
| committer | Thomas Vigouroux <39092278+vigoux@users.noreply.github.com> | 2020-08-09 18:38:00 +0200 |
| commit | 429036317aa67b097fa4a04b8dda5551266b942e (patch) | |
| tree | 8542b0f694b3d6970b392644bc62954d8989fc52 /queries/lua | |
| parent | Add troubleshooting for when a parser changes (diff) | |
| download | nvim-treesitter-429036317aa67b097fa4a04b8dda5551266b942e.tar nvim-treesitter-429036317aa67b097fa4a04b8dda5551266b942e.tar.gz nvim-treesitter-429036317aa67b097fa4a04b8dda5551266b942e.tar.bz2 nvim-treesitter-429036317aa67b097fa4a04b8dda5551266b942e.tar.lz nvim-treesitter-429036317aa67b097fa4a04b8dda5551266b942e.tar.xz nvim-treesitter-429036317aa67b097fa4a04b8dda5551266b942e.tar.zst nvim-treesitter-429036317aa67b097fa4a04b8dda5551266b942e.zip | |
Lua: highlight function name
Diffstat (limited to 'queries/lua')
| -rw-r--r-- | queries/lua/highlights.scm | 17 |
1 files changed, 10 insertions, 7 deletions
diff --git a/queries/lua/highlights.scm b/queries/lua/highlights.scm index 7a69434dd..01bb48ec4 100644 --- a/queries/lua/highlights.scm +++ b/queries/lua/highlights.scm @@ -25,11 +25,11 @@ ) [ -"in" -"local" -"return" -(break_statement) -"goto" + "in" + "local" + "return" + (break_statement) + "goto" ] @keyword ;; Operators @@ -77,9 +77,12 @@ (nil) @constant.builtin (spread) @constant ;; "..." -;; Nodes -("function" @function "end" @function) ;; Any node that has both funtion and end in it +;; Functions +("function" @keyword.function + [(function_name) (identifier)] @function + "end" @keyword.function) +;; Nodes (table ["{" "}"] @constructor) (comment) @comment (string) @string |
