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
This commit is contained in:
Connor Lay (Clay) 2021-08-01 13:09:41 -06:00 committed by Stephan Seitz
parent b2ce0800cf
commit 363ac62e23
9 changed files with 93 additions and 0 deletions

View file

@ -78,6 +78,10 @@
remote: [(atom) (module)] @type
function: (function_identifier) @method)
(dot_call
remote: (identifier) @variable
function: (function_identifier) @method)
"fn" @keyword.function
; def, defp, defguard, ... everything that starts with def

View file

@ -8,3 +8,8 @@
(sigil_start) @_start
(sigil_content) @regex)
(#match? @_start "~(r|R)[/</\\\"[({|]"))
((sigil
(sigil_start) @_start
(sigil_content) @surface)
(#eq? @_start "~F\"\"\""))