diff options
Diffstat (limited to 'queries/angular')
| -rw-r--r-- | queries/angular/highlights.scm | 43 |
1 files changed, 26 insertions, 17 deletions
diff --git a/queries/angular/highlights.scm b/queries/angular/highlights.scm index 42d69c28a..a109dc179 100644 --- a/queries/angular/highlights.scm +++ b/queries/angular/highlights.scm @@ -1,12 +1,19 @@ (identifier) @variable -(pipe_sequence "|" @operator) + +(pipe_sequence + "|" @operator) + (string) @string + (number) @number + (pipe_call name: (identifier) @function) + (pipe_call - arguments: (pipe_arguments - (identifier) @variable.parameter)) + arguments: + (pipe_arguments + (identifier) @variable.parameter)) (structural_assignment operator: (identifier) @keyword) @@ -18,32 +25,34 @@ function: (identifier) @function) (call_expression - function: ((identifier) @function.builtin - (#eq? @function.builtin "$any"))) + function: + ((identifier) @function.builtin + (#eq? @function.builtin "$any"))) [ -"let" -"as" + "let" + "as" ] @keyword [ -"(" -")" -"[" -"]" -"{" -"}" + "(" + ")" + "[" + "]" + "{" + "}" ] @punctuation.bracket [ -";" -"." -"," -"?." + ";" + "." + "," + "?." ] @punctuation.delimiter ((identifier) @boolean (#any-of? @boolean "true" "false")) + ((identifier) @variable.builtin (#any-of? @variable.builtin "this" "\$event" "null")) |
