aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClay2022-06-17 22:30:28 +0000
committerGitHub2022-06-17 22:30:28 +0000
commitb13e534b92a2616134157d9df80c49dd6af223c6 (patch)
treed3660620bb48de1f3ee01f8b3a4f221bc712f456
parent15807d5f273012d048107487e3d9e13f3987878c (diff)
HEEx: upgrade version and support new special_attribute node (#2800)
-rw-r--r--languages.toml2
-rw-r--r--runtime/queries/heex/highlights.scm3
2 files changed, 4 insertions, 1 deletions
diff --git a/languages.toml b/languages.toml
index e59803da..ba9419b3 100644
--- a/languages.toml
+++ b/languages.toml
@@ -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"
diff --git a/runtime/queries/heex/highlights.scm b/runtime/queries/heex/highlights.scm
index d63853b5..c42a689f 100644
--- a/runtime/queries/heex/highlights.scm
+++ b/runtime/queries/heex/highlights.scm
@@ -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
[