From 9e32cc15cfc111ebba96949fee31a36ff4b463dc Mon Sep 17 00:00:00 2001 From: Jose Esteves Date: Fri, 12 Nov 2021 10:28:04 -0300 Subject: [PATCH] add single curly braces delimiters skip interpolation strings --- syntax/eelixir.vim | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/syntax/eelixir.vim b/syntax/eelixir.vim index 19bc252..3fff0f8 100644 --- a/syntax/eelixir.vim +++ b/syntax/eelixir.vim @@ -1,5 +1,5 @@ if exists("b:current_syntax") - finish + " finish endif let s:cpo_save = &cpo @@ -59,6 +59,8 @@ syn cluster eelixirRegions contains=eelixirBlock,surfaceExpression,eelixirExpres exe 'syn region eelixirExpression matchgroup=eelixirDelimiter start="<%" end="%\@" contains=@elixirTop containedin=ALLBUT,@eelixirRegions keepend' exe 'syn region eelixirExpression matchgroup=eelixirDelimiter start="<%=" end="%\@" contains=@elixirTop containedin=ALLBUT,@eelixirRegions keepend' exe 'syn region surfaceExpression matchgroup=surfaceDelimiter start="{{" end="}}" contains=@elixirTop containedin=ALLBUT,@eelixirRegions keepend' +exe 'syn region surfaceExpression matchgroup=surfaceDelimiter start="{" end="}" contains=@elixirTop containedin=ALLBUT,@eelixirRegions keepend' +exe 'syn region surfaceExpression matchgroup=surfaceDelimiter start="{" end="}" skip="#{[^}]*}" contains=@elixirTop containedin=htmlValue keepend' exe 'syn region eelixirQuote matchgroup=eelixirDelimiter start="<%%" end="%\@" contains=@elixirTop containedin=ALLBUT,@eelixirRegions keepend' exe 'syn region eelixirComment matchgroup=eelixirDelimiter start="<%#" end="%\@" contains=elixirTodo,@Spell containedin=ALLBUT,@eelixirRegions keepend'