From b13e534b92a2616134157d9df80c49dd6af223c6 Mon Sep 17 00:00:00 2001 From: Clay Date: Fri, 17 Jun 2022 15:30:28 -0700 Subject: [PATCH] HEEx: upgrade version and support new special_attribute node (#2800) --- languages.toml | 2 +- runtime/queries/heex/highlights.scm | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/languages.toml b/languages.toml index e59803dae..ba9419b3e 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 d63853b5c..c42a689fc 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 [