diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2014-03-01 00:15:51 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2014-03-01 00:15:51 +0100 |
commit | 9b3b092d15503ed70ea4bf60c4e1345b196c3677 (patch) | |
tree | 45fdb6e08c380ab8bfe0988c66b15ab014688a55 /syntax/markdown.vim | |
parent | 959a2ffa3ddf3a716b37e15d0034546236a97957 (diff) | |
download | vim-polyglot-9b3b092d15503ed70ea4bf60c4e1345b196c3677.tar.gz vim-polyglot-9b3b092d15503ed70ea4bf60c4e1345b196c3677.zip |
Update
Diffstat (limited to 'syntax/markdown.vim')
-rw-r--r-- | syntax/markdown.vim | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/syntax/markdown.vim b/syntax/markdown.vim index ba0d5565..8fc47278 100644 --- a/syntax/markdown.vim +++ b/syntax/markdown.vim @@ -85,6 +85,9 @@ syn region markdownCode matchgroup=markdownCodeDelimiter start="`" end="`" keepe syn region markdownCode matchgroup=markdownCodeDelimiter start="`` \=" end=" \=``" keepend contains=markdownLineStart syn region markdownCode matchgroup=markdownCodeDelimiter start="^\s*```.*$" end="^\s*```\ze\s*$" keepend +syn match markdownFootnote "\[^[^\]]\]\s*$" +syn match markdownFootnoteDefinition "^\[^[^\]]\]:" + if main_syntax ==# 'markdown' for s:type in g:markdown_fenced_languages exe 'syn region markdownHighlight'.substitute(matchstr(s:type,'[^=]*$'),'\..*','','').' matchgroup=markdownCodeDelimiter start="^\s*```\s*'.matchstr(s:type,'[^=]*').'\>.*$" end="^\s*```\ze\s*$" keepend contains=@markdownHighlight'.substitute(matchstr(s:type,'[^=]*$'),'\.','','g') @@ -108,6 +111,9 @@ hi def link markdownListMarker htmlTagName hi def link markdownBlockquote Comment hi def link markdownRule PreProc +hi def link markdownFootnote Typedef +hi def link markdownFootnoteDefinition Typedef + hi def link markdownLinkText htmlLink hi def link markdownIdDeclaration Typedef hi def link markdownId Type |