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/elixir | |
| parent | Update highlights for new elixir-lang parser (diff) | |
| download | nvim-treesitter-ec5341a773e1e89ac6b4874a48b6efb5ab2e1c09.tar nvim-treesitter-ec5341a773e1e89ac6b4874a48b6efb5ab2e1c09.tar.gz nvim-treesitter-ec5341a773e1e89ac6b4874a48b6efb5ab2e1c09.tar.bz2 nvim-treesitter-ec5341a773e1e89ac6b4874a48b6efb5ab2e1c09.tar.lz nvim-treesitter-ec5341a773e1e89ac6b4874a48b6efb5ab2e1c09.tar.xz nvim-treesitter-ec5341a773e1e89ac6b4874a48b6efb5ab2e1c09.tar.zst nvim-treesitter-ec5341a773e1e89ac6b4874a48b6efb5ab2e1c09.zip | |
Update injections for new elixir-lang parser
Diffstat (limited to 'queries/elixir')
| -rw-r--r-- | queries/elixir/injections.scm | 30 |
1 files changed, 12 insertions, 18 deletions
diff --git a/queries/elixir/injections.scm b/queries/elixir/injections.scm index 29fc58426..e0dc22034 100644 --- a/queries/elixir/injections.scm +++ b/queries/elixir/injections.scm @@ -1,20 +1,14 @@ -(comment) @comment +(sigil + (sigil_name) @_sigil_name + (quoted_content) @surface +(#eq? @_sigil_name "F")) -; TODO: re-add when markdown is added -; (heredoc -; (heredoc_content) @markdown) +(sigil + (sigil_name) @_sigil_name + (quoted_content) @heex +(#eq? @_sigil_name "H")) -((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) @zig +(#eq? @_sigil_name "Z")) |
