-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmarkdown.vim
24 lines (19 loc) · 990 Bytes
/
markdown.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
" YAML front matter
syntax match Comment /\%^---\_.\{-}---$/ contains=@Spell
" My unfinished attempt at getting YAML syntax in the front matter
" NOT WORKING
" syntax include @yaml $VIMRUNTIME/syntax/yaml.vim
" syntax region jekyllFrontMatter start=/\%^---/ end=/^---/ contains=@yaml
" Match Liquid Tags and Filters
syntax match liquidTag /{[{%].*[}%]}/
" Match the Octopress Backtick Code Block line
syntax match codeblockContents contained /^\(```\)\@!.*/
syntax region octoBacktickCodeBlockRegion start=/^```/ end=/^```/ contains=codeblockContents keepend
" Special handling for Octopress {% codeblock %}
" NOT WORKING
" syntax region octoCodeBlockRegion start=/{%\s*codeblock.*%}/ end=/{%\s*endcodeblock.*%}/ contains=codeblockContents keepend
hi def link codeblockContents Ignore
hi def link jekyllFrontMatter Comment
hi def link liquidTag Statement
hi def link octoBacktickCodeBlockRegion Statement
hi def link octoCodeBlockRegion Statement