lsp_markdown.vim 841 B

123456789101112131415161718192021222324
  1. " Vim syntax file
  2. " Language: lsp_markdown
  3. " Maintainer: Michael Lingelbach <m.j.lbach@gmail.com
  4. " URL: http://neovim.io
  5. " Remark: Uses markdown syntax file
  6. " always source the system included markdown instead of any other installed
  7. " markdown.vim syntax files
  8. execute 'source' expand('<sfile>:p:h') .. '/markdown.vim'
  9. syn cluster mkdNonListItem add=mkdEscape,mkdNbsp
  10. syn clear markdownEscape
  11. syntax region markdownEscape matchgroup=markdownEscape start=/\\\ze[\\\x60*{}\[\]()#+\-,.!_>~|"$%&'\/:;<=?@^ ]/ end=/./ containedin=ALL keepend oneline concealends
  12. " conceal html entities
  13. syntax match mkdNbsp /&nbsp;/ conceal cchar=
  14. syntax match mkdLt /&lt;/ conceal cchar=<
  15. syntax match mkdGt /&gt;/ conceal cchar=>
  16. syntax match mkdAmp /&amp;/ conceal cchar=&
  17. syntax match mkdQuot /&quot;/ conceal cchar="
  18. hi def link mkdEscape special