From 8d53c082f37d9bd10e0327eb1e417b5a009f26e0 Mon Sep 17 00:00:00 2001 From: Andrew Haust Date: Wed, 11 Sep 2024 19:34:41 -0400 Subject: [PATCH] Update HEEx comment syntax --- ftplugin/eelixir.vim | 4 ++-- syntax/eelixir.vim | 2 +- syntax/elixir.vim | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ftplugin/eelixir.vim b/ftplugin/eelixir.vim index eebfb69..ee911cc 100644 --- a/ftplugin/eelixir.vim +++ b/ftplugin/eelixir.vim @@ -108,8 +108,8 @@ if !exists('b:surround_5') let b:surround_5 = "<% \r %>\n<% end %>" endif -setlocal comments=:<%# -setlocal commentstring=<%#\ %s\ %> +setlocal comments=:<%!-- +setlocal commentstring=<%!--\ %s\ --%> let b:undo_ftplugin = "setl cms< " . \ " | unlet! b:browsefilter b:match_words | " . s:undo_ftplugin diff --git a/syntax/eelixir.vim b/syntax/eelixir.vim index edb15c6..0f94b0c 100644 --- a/syntax/eelixir.vim +++ b/syntax/eelixir.vim @@ -62,7 +62,7 @@ exe 'syn region surfaceExpression matchgroup=surfaceDelimiter start="{{" end="} 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' +exe 'syn region eelixirComment matchgroup=eelixirDelimiter start="<%!--" end="%\@