diff options
| author | Pham Huy Hoang <hoangtun0810@gmail.com> | 2024-01-06 15:05:50 +0900 |
|---|---|---|
| committer | Christian Clason <c.clason@uni-graz.at> | 2024-01-19 16:58:37 +0100 |
| commit | 57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9 (patch) | |
| tree | 70bf645539882b88e6fa129cefd30986b89bbac3 /queries/gn | |
| parent | ci: add query lint job (diff) | |
| download | nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.gz nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.bz2 nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.lz nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.xz nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.tar.zst nvim-treesitter-57a8acf0c4ed5e7f6dda83c3f9b073f8a99a70f9.zip | |
chore: query formatting
Diffstat (limited to 'queries/gn')
| -rw-r--r-- | queries/gn/highlights.scm | 32 |
1 files changed, 18 insertions, 14 deletions
diff --git a/queries/gn/highlights.scm b/queries/gn/highlights.scm index 3b09a7753..7bd97ff38 100644 --- a/queries/gn/highlights.scm +++ b/queries/gn/highlights.scm @@ -1,20 +1,16 @@ ; Includes - "import" @keyword.import ; Conditionals - [ "if" "else" ] @keyword.conditional ; Repeats - "foreach" @keyword.repeat ; Operators - [ "=" "+=" @@ -33,19 +29,17 @@ ] @operator ; Variables - (identifier) @variable ; Functions - -(call_expression function: (identifier) @function.call) +(call_expression + function: (identifier) @function.call) ; Fields - -(scope_access field: (identifier) @variable.member) +(scope_access + field: (identifier) @variable.member) ; Literals - (string) @string (escape_sequence) @string.escape @@ -59,16 +53,26 @@ (boolean) @boolean ; Punctuation - -[ "{" "}" "[" "]" "(" ")" ] @punctuation.bracket +[ + "{" + "}" + "[" + "]" + "(" + ")" +] @punctuation.bracket [ "." "," ] @punctuation.delimiter -(expansion ["$" "${" "}"] @punctuation.special) +(expansion + [ + "$" + "${" + "}" + ] @punctuation.special) ; Comments - (comment) @comment |
