Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 ~SQL sigils in the built-in injections ([#83](https://github.com/elixir-lang/tree-sitter-elixir/pull/83))

## [v0.3.4](https://github.com/elixir-lang/tree-sitter-elixir/tree/v0.3.4) (2025-02-06)

### Changed
Expand Down
8 changes: 8 additions & 0 deletions queries/injections.scm
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,11 @@
(#any-of? @_sigil_name "H" "LVN")
(#set! injection.language "heex")
(#set! injection.combined))

; SQL injection
((sigil
(sigil_name) @_sigil_name
(quoted_content) @injection.content)
(#eq? @_sigil_name "SQL")
(#set! injection.language "sql")
(#set! injection.combined))