Skip to content

Commit

Permalink
feat(queries): update queries
Browse files Browse the repository at this point in the history
Signed-off-by: loongtao.zhang <loongtao.zhang@outlook.com>
  • Loading branch information
cathaysia committed Jan 23, 2025
1 parent ba9d682 commit 5f01ee8
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
9 changes: 9 additions & 0 deletions tree-sitter-jinja/queries/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,18 @@
(function_call
(identifier) @function.call)

; function_call
(arg
(identifier) @variable.parameter)

; macro
(arg
(expression
(binary_expression
(unary_expression
(primary_expression
(identifier) @variable.parameter)))))

(expression
"."
(expression)+ @variable.member)
Expand Down
10 changes: 10 additions & 0 deletions tree-sitter-jinja_inline/queries/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,19 @@
(function_call
(identifier) @function.call)

; function_call
(arg
(identifier) @variable.parameter)

; macro
(arg
(expression
(binary_expression
(unary_expression
(primary_expression
(identifier) @variable.parameter)))))


(expression
"."
(expression)+ @variable.member)
Expand Down

0 comments on commit 5f01ee8

Please sign in to comment.