diff --git a/CHANGELOG.md b/CHANGELOG.md index 165bbfa..beeee55 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/). +## [Unreleased](https://github.com/elixir-lang/tree-sitter-elixir/tree/main) + +### Added + +* Support for ~LVN sigils (LiveView Native templates) in the built-in injections ([#75](https://github.com/elixir-lang/tree-sitter-elixir/pull/75)) + ## [v0.3.1](https://github.com/elixir-lang/tree-sitter-elixir/tree/v0.3.1) (2024-09-28) ### Changed diff --git a/queries/injections.scm b/queries/injections.scm index 16069ce..d0668fe 100644 --- a/queries/injections.scm +++ b/queries/injections.scm @@ -2,6 +2,6 @@ ((sigil (sigil_name) @_sigil_name (quoted_content) @injection.content) - (#eq? @_sigil_name "H") + (#match? @_sigil_name "^(H|LVN)$") (#set! injection.language "heex") (#set! injection.combined))