Skip to content

Commit

Permalink
Add support for LiveView Native template syntax highlighting (#75)
Browse files Browse the repository at this point in the history
Co-authored-by: Jonatan Kłosko <[email protected]>
  • Loading branch information
bcardarella and jonatanklosko authored Oct 23, 2024
1 parent 2ac7a0f commit 5345854
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion queries/injections.scm
Original file line number Diff line number Diff line change
Expand Up @@ -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))

0 comments on commit 5345854

Please sign in to comment.