nvim-treesitter/queries/elixir/injections.scm
Connor Lay (Clay) 363ac62e23 Feature: Add Surface language and integrate with Elixir (#1645)
* Add initial surface highlights & injections

* Additional surface highlights

* Filetype detection, fix injections

* Fix Elixir function highlight when left is an identifier

* Add surface parser

* Fix comment highlights

* Surface folds, indents, better highlights

* Highlight surface components & directives

* Restore comments Elixir injections
2021-09-17 21:06:36 +02:00

15 lines
296 B
Scheme

(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\"\"\""))