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/func | |
| 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/func')
| -rw-r--r-- | queries/func/highlights.scm | 40 |
1 files changed, 16 insertions, 24 deletions
diff --git a/queries/func/highlights.scm b/queries/func/highlights.scm index b5b6dde35..a6fb6bd0b 100644 --- a/queries/func/highlights.scm +++ b/queries/func/highlights.scm @@ -1,13 +1,10 @@ ; Include - "#include" @keyword.import + (include_path) @string ; Preproc - -[ - "#pragma" -] @keyword.directive +"#pragma" @keyword.directive (pragma_directive [ @@ -17,7 +14,6 @@ ] @keyword.directive) ; Keywords - [ "asm" "impure" @@ -27,12 +23,9 @@ "type" ] @keyword -[ - "return" -] @keyword.return +"return" @keyword.return ; Conditionals - [ "if" "ifnot" @@ -43,14 +36,12 @@ ] @keyword.conditional ; Exceptions - [ "try" "catch" ] @keyword.exception ; Repeats - [ "do" "forall" @@ -66,16 +57,13 @@ ] @type.qualifier ; Variables - (identifier) @variable ; Constants - (const_var_declarations name: (identifier) @constant) ; Functions/Methods - (function_definition name: (function_name) @function) @@ -86,17 +74,14 @@ method_name: (identifier) @function.method.call) ; Parameters - (parameter) @variable.parameter ; Types - (type_identifier) @type (primitive_type) @type.builtin ; Operators - [ "=" "+=" @@ -143,7 +128,6 @@ ] @operator ; Literals - [ (string) (asm_instruction) @@ -157,12 +141,21 @@ (number) @number ; Punctuation +[ + "{" + "}" +] @punctuation.bracket -["{" "}"] @punctuation.bracket - -["(" ")" "()"] @punctuation.bracket +[ + "(" + ")" + "()" +] @punctuation.bracket -["[" "]"] @punctuation.bracket +[ + "[" + "]" +] @punctuation.bracket [ ";" @@ -171,5 +164,4 @@ ] @punctuation.delimiter ; Comments - (comment) @comment @spell |
