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/twig | |
| 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/twig')
| -rw-r--r-- | queries/twig/highlights.scm | 70 | ||||
| -rw-r--r-- | queries/twig/injections.scm | 5 |
2 files changed, 50 insertions, 25 deletions
diff --git a/queries/twig/highlights.scm b/queries/twig/highlights.scm index a0a19160d..435fdc0f1 100644 --- a/queries/twig/highlights.scm +++ b/queries/twig/highlights.scm @@ -1,55 +1,81 @@ (comment) @comment @spell (filter_identifier) @function.call + (function_identifier) @function.call + (test) @function.builtin + (variable) @variable + (string) @string + (interpolated_string) @string + (operator) @operator + (number) @number + (boolean) @boolean + (null) @constant.builtin + (keyword) @keyword + (attribute) @attribute + (tag) @tag + (conditional) @keyword.conditional + (repeat) @keyword.repeat + (method) @function.method + (parameter) @variable.parameter [ - "{{" - "}}" - "{{-" - "-}}" - "{{~" - "~}}" - "{%" - "%}" - "{%-" - "-%}" - "{%~" - "~%}" + "{{" + "}}" + "{{-" + "-}}" + "{{~" + "~}}" + "{%" + "%}" + "{%-" + "-%}" + "{%~" + "~%}" ] @tag.delimiter [ - "," - "." + "," + "." ] @punctuation.delimiter [ - "?" - ":" - "=" - "|" + "?" + ":" + "=" + "|" ] @operator -(interpolated_string ["#{" "}"] @punctuation.special) +(interpolated_string + [ + "#{" + "}" + ] @punctuation.special) [ - "(" ")" - "[" "]" + "(" + ")" + "[" + "]" ] @punctuation.bracket -(hash ["{" "}"] @punctuation.bracket) +(hash + [ + "{" + "}" + ] @punctuation.bracket) diff --git a/queries/twig/injections.scm b/queries/twig/injections.scm index 29ba009a8..c475757bf 100644 --- a/queries/twig/injections.scm +++ b/queries/twig/injections.scm @@ -1,4 +1,3 @@ ((content) @injection.content - (#set! injection.language "html") - (#set! injection.combined)) - + (#set! injection.language "html") + (#set! injection.combined)) |
