nvim-treesitter/queries/angular/highlights.scm

77 lines
913 B
Scheme
Raw Normal View History

2023-11-24 10:25:47 +01:00
(identifier) @variable
2024-01-06 15:05:50 +09:00
(pipe_sequence
"|" @operator)
2023-11-24 10:25:47 +01:00
(string) @string
2024-01-06 15:05:50 +09:00
2023-11-24 10:25:47 +01:00
(number) @number
2024-01-06 15:05:50 +09:00
2023-11-24 10:25:47 +01:00
(pipe_call
name: (identifier) @function)
2024-01-06 15:05:50 +09:00
2023-11-24 10:25:47 +01:00
(pipe_call
2024-01-06 15:05:50 +09:00
arguments:
(pipe_arguments
(identifier) @variable.parameter))
2023-11-24 10:25:47 +01:00
(structural_assignment
operator: (identifier) @keyword)
(member_expression
property: (identifier) @property)
(call_expression
function: (identifier) @function)
(call_expression
2024-01-06 15:05:50 +09:00
function:
((identifier) @function.builtin
(#eq? @function.builtin "$any")))
2023-11-24 10:25:47 +01:00
[
2024-01-06 15:05:50 +09:00
"let"
"as"
2023-11-24 10:25:47 +01:00
] @keyword
[
2024-01-06 15:05:50 +09:00
"("
")"
"["
"]"
"{"
"}"
2023-11-24 10:25:47 +01:00
] @punctuation.bracket
[
2024-01-06 15:05:50 +09:00
";"
"."
","
"?."
2023-11-24 10:25:47 +01:00
] @punctuation.delimiter
((identifier) @boolean
2023-11-24 10:29:17 +01:00
(#any-of? @boolean "true" "false"))
2024-01-06 15:05:50 +09:00
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