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/properties | |
| 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/properties')
| -rw-r--r-- | queries/properties/highlights.scm | 36 | ||||
| -rw-r--r-- | queries/properties/injections.scm | 2 | ||||
| -rw-r--r-- | queries/properties/locals.scm | 6 |
3 files changed, 31 insertions, 13 deletions
diff --git a/queries/properties/highlights.scm b/queries/properties/highlights.scm index 3414294b7..d819e20a5 100644 --- a/queries/properties/highlights.scm +++ b/queries/properties/highlights.scm @@ -4,25 +4,41 @@ (value) @string -(value (escape) @string.escape) +(value + (escape) @string.escape) ((value) @boolean - (#any-of? @boolean "true" "false")) + (#any-of? @boolean "true" "false")) ((value) @number - (#lua-match? @number "^%d+$")) + (#lua-match? @number "^%d+$")) (index) @number -(property [ "=" ":" ] @operator) +(property + [ + "=" + ":" + ] @operator) -[ "${" "}" ] @punctuation.special +[ + "${" + "}" +] @punctuation.special -(substitution ":" @punctuation.special) +(substitution + ":" @punctuation.special) -[ "[" "]" ] @punctuation.bracket +[ + "[" + "]" +] @punctuation.bracket -[ "." "\\" ] @punctuation.delimiter +[ + "." + "\\" +] @punctuation.delimiter -((substitution (key) @constant) - (#lua-match? @constant "^[A-Z_][A-Z0-9_]*$")) +((substitution + (key) @constant) + (#lua-match? @constant "^[A-Z_][A-Z0-9_]*$")) diff --git a/queries/properties/injections.scm b/queries/properties/injections.scm index 321c90add..2f0e58eb6 100644 --- a/queries/properties/injections.scm +++ b/queries/properties/injections.scm @@ -1,2 +1,2 @@ ((comment) @injection.content - (#set! injection.language "comment")) + (#set! injection.language "comment")) diff --git a/queries/properties/locals.scm b/queries/properties/locals.scm index f70e953db..91a3b9a86 100644 --- a/queries/properties/locals.scm +++ b/queries/properties/locals.scm @@ -1,3 +1,5 @@ -(property (key) @local.definition) +(property + (key) @local.definition) -(substitution (key) @local.reference) +(substitution + (key) @local.reference) |
