From 1e74c34b668d0bbdd14492fc220974e4fc38dc6b Mon Sep 17 00:00:00 2001 From: Christian Clason Date: Fri, 24 Nov 2023 10:25:47 +0100 Subject: feat: add angular parser and queries --- queries/angular/highlights.scm | 67 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 67 insertions(+) create mode 100644 queries/angular/highlights.scm (limited to 'queries/angular') 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 -- cgit v1.3.1