Skip to content

Commit b848e63

Browse files
Add support for ~SQL sigils (#84)
Co-authored-by: Jonatan Kłosko <jonatanklosko@gmail.com>
1 parent 450a819 commit b848e63

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/).
66

7+
## [Unreleased](https://github.com/elixir-lang/tree-sitter-elixir/tree/main)
8+
9+
### Added
10+
11+
* Support for ~SQL sigils in the built-in injections ([#84](https://github.com/elixir-lang/tree-sitter-elixir/pull/84))
12+
713
## [v0.3.4](https://github.com/elixir-lang/tree-sitter-elixir/tree/v0.3.4) (2025-02-06)
814

915
### Changed

queries/injections.scm

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,11 @@
55
(#any-of? @_sigil_name "H" "LVN")
66
(#set! injection.language "heex")
77
(#set! injection.combined))
8+
9+
; SQL injection
10+
((sigil
11+
(sigil_name) @_sigil_name
12+
(quoted_content) @injection.content)
13+
(#eq? @_sigil_name "SQL")
14+
(#set! injection.language "sql")
15+
(#set! injection.combined))

0 commit comments

Comments
 (0)