diff options
| author | Connor Lay (Clay) <connorlay@pm.me> | 2021-10-05 19:35:35 -0700 |
|---|---|---|
| committer | Stephan Seitz <stephan.seitz@fau.de> | 2021-10-13 01:31:49 +0200 |
| commit | ec5341a773e1e89ac6b4874a48b6efb5ab2e1c09 (patch) | |
| tree | e51739749f1807301c0164ec1e044ffc663ea510 /queries | |
| parent | e0125a5a1ca685175e4cb54b416aa6dc2457da18 (diff) | |
Update injections for new elixir-lang parser
Diffstat (limited to 'queries')
| -rw-r--r-- | queries/elixir/injections.scm | 34 |
1 files changed, 14 insertions, 20 deletions
diff --git a/queries/elixir/injections.scm b/queries/elixir/injections.scm index 29fc5842..e0dc2203 100644 --- a/queries/elixir/injections.scm +++ b/queries/elixir/injections.scm @@ -1,20 +1,14 @@ -(comment) @comment - -; TODO: re-add when markdown is added -; (heredoc -; (heredoc_content) @markdown) - -((sigil - (sigil_start) @_start - (sigil_content) @regex) - (#match? @_start "~(r|R)[/</\\\"[({|]")) - -((sigil - (sigil_start) @_start - (sigil_content) @surface) - (#eq? @_start "~F\"\"\"")) - -((sigil - (sigil_start) @_start - (sigil_content) @heex) - (#eq? @_start "~H\"\"\"")) +(sigil + (sigil_name) @_sigil_name + (quoted_content) @surface +(#eq? @_sigil_name "F")) + +(sigil + (sigil_name) @_sigil_name + (quoted_content) @heex +(#eq? @_sigil_name "H")) + +(sigil + (sigil_name) @_sigil_name + (quoted_content) @zig +(#eq? @_sigil_name "Z")) |
