Skip to content

Commit

Permalink
fix(queries): highlights for attribute
Browse files Browse the repository at this point in the history
  • Loading branch information
MunifTanjim committed Sep 7, 2023
1 parent 88e4464 commit 5b25c31
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions queries/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -124,18 +124,19 @@
"}"
] @punctuation.bracket

(attribute
[
"<"
">"
] @punctuation.bracket)

;; Variables

(identifier) @variable

((identifier) @variable.builtin
(#eq? @variable.builtin "self"))

(variable_list
attribute: (attribute
(["<" ">"] @punctuation.bracket
(identifier) @attribute)))

;; Constants

((identifier) @constant
Expand Down Expand Up @@ -212,6 +213,8 @@

;; Others

(attribute (identifier) @attribute)

(comment) @comment

(hash_bang_line) @preproc
Expand Down

0 comments on commit 5b25c31

Please sign in to comment.