nvim-treesitter/queries/angular/highlights.scm

68 lines
871 B
Scheme
Raw Normal View History

2023-11-24 10:25:47 +01:00
(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
2023-11-24 10:29:17 +01:00
(#any-of? @boolean "true" "false"))
2023-11-24 10:25:47 +01:00
((identifier) @variable.builtin
2023-11-24 10:29:17 +01:00
(#any-of? @variable.builtin "this" "\$event" "null"))
2023-11-24 10:25:47 +01:00
[
"-"
"&&"
"+"
"<"
"<="
"="
"=="
"==="
"!="
"!=="
">"
">="
"*"
"/"
"||"
"%"
] @operator