aboutsummaryrefslogtreecommitdiffstats
path: root/queries/angular
diff options
context:
space:
mode:
Diffstat (limited to 'queries/angular')
-rw-r--r--queries/angular/highlights.scm67
1 files changed, 67 insertions, 0 deletions
diff --git a/queries/angular/highlights.scm b/queries/angular/highlights.scm
new file mode 100644
index 000000000..98c6f76e9
--- /dev/null
+++ b/queries/angular/highlights.scm
@@ -0,0 +1,67 @@
+(identifier) @variable
+(pipe_sequence "|" @operator)
+(string) @string
+(number) @number
+(pipe_call
+ name: (identifier) @function)
+(pipe_call
+ arguments: (pipe_arguments
+ (identifier) @parameter))
+
+(structural_assignment
+ operator: (identifier) @keyword)
+
+(member_expression
+ property: (identifier) @property)
+
+(call_expression
+ function: (identifier) @function)
+
+(call_expression
+ function: ((identifier) @function.builtin
+ (#eq? @function.builtin "$any")))
+
+[
+"let"
+"as"
+] @keyword
+
+[
+"("
+")"
+"["
+"]"
+"{"
+"}"
+] @punctuation.bracket
+
+[
+";"
+"."
+","
+"?."
+] @punctuation.delimiter
+
+((identifier) @boolean
+ (#vim-match? @boolean "^(true|false)$"))
+((identifier) @variable.builtin
+ (#vim-match? @variable.builtin "^(this|\$event|null)$"))
+
+[
+ "-"
+ "&&"
+ "+"
+ "<"
+ "<="
+ "="
+ "=="
+ "==="
+ "!="
+ "!=="
+ ">"
+ ">="
+ "*"
+ "/"
+ "||"
+ "%"
+] @operator