mirror of
https://github.com/neovim/neovim.git
synced 2025-10-18 07:41:51 +00:00
fix(runtime): check markdownError before syn-clear (#17009)
Avoids `E28: No such highlight group name: markdownError` when using a foreign markdown syntax.
This commit is contained in:
![41898282+github-actions[bot]@users.noreply.github.com](/assets/img/avatar_default.png)
committed by
GitHub

parent
dd0d4fc666
commit
11dafcaf05
@@ -12,7 +12,9 @@ unlet! b:current_syntax
|
|||||||
syn case match
|
syn case match
|
||||||
|
|
||||||
" We do not care about markdown syntax errors
|
" We do not care about markdown syntax errors
|
||||||
syn clear markdownError
|
if hlexists('markdownError')
|
||||||
|
syn clear markdownError
|
||||||
|
endif
|
||||||
|
|
||||||
syn keyword healthError ERROR[:] containedin=markdownCodeBlock,mkdListItemLine
|
syn keyword healthError ERROR[:] containedin=markdownCodeBlock,mkdListItemLine
|
||||||
syn keyword healthWarning WARNING[:] containedin=markdownCodeBlock,mkdListItemLine
|
syn keyword healthWarning WARNING[:] containedin=markdownCodeBlock,mkdListItemLine
|
||||||
|
Reference in New Issue
Block a user