init
This commit is contained in:
@@ -0,0 +1,33 @@
|
||||
" Links
|
||||
syn region markdownLinkText matchgroup=markdownLinkTextDelimiter
|
||||
\ start="!\=\[\%(\_[^]]*]\%( \=[[(]\)\)\@=" end="\]\%( \=[[(]\)\@="
|
||||
\ nextgroup=markdownLink,markdownId skipwhite
|
||||
\ contains=@markdownInline,markdownLineStart concealends
|
||||
syn region markdownLink matchgroup=markdownLinkDelimiter
|
||||
\ start="(" end=")" keepend contained conceal contains=markdownUrl
|
||||
syn cluster markdownInline add=@NoSpell
|
||||
|
||||
" Code
|
||||
syn region markdownCode matchgroup=markdownCodeDelimiter
|
||||
\ start="`" end="`" concealends
|
||||
|
||||
" Extended
|
||||
syn match markdownExt /{[.:#][^}]*}/ conceal
|
||||
|
||||
" Error
|
||||
" syn match markdownError "\w\@<=_\w\@="
|
||||
syn match markdownError "\w\@<=\w\@="
|
||||
|
||||
" Latex
|
||||
let b:current_syntax = ''
|
||||
unlet b:current_syntax
|
||||
syn include syntax/tex.vim
|
||||
syn region markdownTexBlock matchgroup=markdownTexMathDelimiter
|
||||
\ start='^\$\$' end='\$\$$' contains=@texMathZoneGroup
|
||||
syn match markdownTexLine '\$[^$].\{-}\$' contains=@texMathZoneGroup
|
||||
|
||||
" Highlights
|
||||
hi markdownTexMathDelimiter ctermfg=13
|
||||
hi markdownTexBlock ctermfg=13
|
||||
hi markdownTexLine ctermfg=13
|
||||
hi markdownExt ctermfg=11 cterm=none
|
||||
Reference in New Issue
Block a user