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/graphql | |
| 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/graphql')
| -rw-r--r-- | queries/graphql/highlights.scm | 25 | ||||
| -rw-r--r-- | queries/graphql/injections.scm | 2 |
2 files changed, 11 insertions, 16 deletions
diff --git a/queries/graphql/highlights.scm b/queries/graphql/highlights.scm index 136f287ee..24db06645 100644 --- a/queries/graphql/highlights.scm +++ b/queries/graphql/highlights.scm @@ -1,6 +1,5 @@ ; Types ;------ - (scalar_type_definition (name) @type) @@ -42,7 +41,6 @@ ; Directives ;----------- - (directive_definition "@" @attribute (name) @attribute) @@ -51,7 +49,6 @@ ; Properties ;----------- - (field (name) @property) @@ -69,9 +66,8 @@ (enum_value (name) @property) -; Variable Definitions and Arguments +; Variable Definitions and Arguments ;----------------------------------- - (operation_definition (name) @variable) @@ -98,7 +94,6 @@ ; Constants ;---------- - (string_value) @string (int_value) @number @@ -109,7 +104,6 @@ ; Literals ;--------- - (description (string_value) @string.documentation @spell) @@ -123,7 +117,6 @@ ; Keywords ;---------- - [ "query" "mutation" @@ -145,21 +138,23 @@ ; Punctuation ;------------ - [ - "(" - ")" - "[" - "]" - "{" - "}" + "(" + ")" + "[" + "]" + "{" + "}" ] @punctuation.bracket "=" @operator "|" @punctuation.delimiter + "&" @punctuation.delimiter + ":" @punctuation.delimiter "..." @punctuation.special + "!" @punctuation.special diff --git a/queries/graphql/injections.scm b/queries/graphql/injections.scm index 321c90add..2f0e58eb6 100644 --- a/queries/graphql/injections.scm +++ b/queries/graphql/injections.scm @@ -1,2 +1,2 @@ ((comment) @injection.content - (#set! injection.language "comment")) + (#set! injection.language "comment")) |
