Skip to content

Commit 8bdf686

Browse files
liskinjbodah
authored andcommitted
syntax: Fix elixir_use_markdown_for_docs
Most (if not all) syntax files unconditionally set b:current_syntax at the end, so we need to unlet it, otherwise the second inclusion is skipped.
1 parent 1c47961 commit 8bdf686

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

syntax/elixir.vim

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -108,12 +108,14 @@ syn region elixirSigil matchgroup=elixirSigilDelimiter start=+\~\a\z('''\)+ end=
108108

109109
" LiveView Sigils surrounded with ~L"""
110110
syntax include @HTML syntax/html.vim
111+
unlet b:current_syntax
111112
syntax region elixirLiveViewSigil matchgroup=elixirSigilDelimiter keepend start=+\~L\z("""\)+ end=+^\s*\z1+ skip=+\\"+ contains=@HTML fold
112113

113114

114115
" Documentation
115116
if exists('g:elixir_use_markdown_for_docs') && g:elixir_use_markdown_for_docs
116117
syn include @markdown syntax/markdown.vim
118+
unlet b:current_syntax
117119
syn cluster elixirDocStringContained contains=@markdown,@Spell,elixirInterpolation
118120
else
119121
let g:elixir_use_markdown_for_docs = 0

0 commit comments

Comments
 (0)