Unnamed repository; edit this file 'description' to name the repository.
Diffstat (limited to 'runtime/queries/twig/highlights.scm')
| -rw-r--r-- | runtime/queries/twig/highlights.scm | 70 |
1 files changed, 13 insertions, 57 deletions
diff --git a/runtime/queries/twig/highlights.scm b/runtime/queries/twig/highlights.scm index 6eca5572..2c95ab63 100644 --- a/runtime/queries/twig/highlights.scm +++ b/runtime/queries/twig/highlights.scm @@ -1,60 +1,16 @@ -(comment) @comment - -(filter_identifier) @function.method -(function_identifier) @function.method -(test) @function.builtin -(variable) @variable -(string) @string -(interpolated_string) @string -(operator) @operator -(number) @constant.numeric.integer -(boolean) @constant.builtin.boolean -(null) @constant.builtin -(keyword) @keyword -(attribute) @attribute -(tag) @tag -(conditional) @keyword.control.conditional -(repeat) @keyword.control.repeat -(method) @function.method -(parameter) @variable.parameter +(comment_directive) @comment [ - "{{" - "}}" - "{{-" - "-}}" - "{{~" - "~}}" - "{%" - "%}" - "{%-" - "-%}" - "{%~" - "~%}" + "{%" + "{%-" + "{%~" + "%}" + "-%}" + "~%}" + "{{" + "{{-" + "{{~" + "}}" + "-}}" + "~}}" ] @keyword - -[ - "," - "." - "?" - ":" - "=" -] @punctuation.delimiter - -[ - "(" - ")" - "[" - "]" - "{" -] @punctuation.bracket - -(hash [ - "}" -] @punctuation.bracket) - -(interpolated_string [ - "#{" - "}" -] @punctuation.delimiter) - |