Skip to content

Commit

Permalink
HEEx: upgrade version and support new special_attribute node (helix-e…
Browse files Browse the repository at this point in the history
  • Loading branch information
connorlay authored and lazytanuki committed Jun 21, 2022
1 parent dd6b7a7 commit 4bb0cff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
2 changes: 1 addition & 1 deletion languages.toml
Original file line number Diff line number Diff line change
Expand Up @@ -1223,7 +1223,7 @@ indent = { tab-width = 2, unit = " " }

[[grammar]]
name = "heex"
source = { git = "https://github.com/connorlay/tree-sitter-heex", rev = "592e22292a367312c35e13de7fdb888f029981d6" }
source = { git = "https://github.com/phoenixframework/tree-sitter-heex", rev = "961bc4d2937cfd24ceb0a5a6b2da607809f8822e" }

[[language]]
name = "sql"
Expand Down
3 changes: 3 additions & 0 deletions runtime/queries/heex/highlights.scm
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,9 @@
(quoted_attribute_value)
] @string

; HEEx special attributes are keywords
(special_attribute_name) @keyword

; HEEx components are highlighted as Elixir modules and functions
(component_name
[
Expand Down

0 comments on commit 4bb0cff

Please sign in to comment.