diff options
author | Adam Stankiewicz <sheerun@sher.pl> | 2017-12-30 11:10:32 +0100 |
---|---|---|
committer | Adam Stankiewicz <sheerun@sher.pl> | 2017-12-30 11:10:32 +0100 |
commit | bb85059bacd5b415a012f25679111a0e55d3c6d9 (patch) | |
tree | 315b2238ec4840aa4bf00ae48276bdffded07673 /syntax/latextoc.vim | |
parent | 11f53253ad9fd0cd3e7a44ed9f8c80a4f265b46e (diff) | |
download | vim-polyglot-bb85059bacd5b415a012f25679111a0e55d3c6d9.tar.gz vim-polyglot-bb85059bacd5b415a012f25679111a0e55d3c6d9.zip |
Update
Diffstat (limited to 'syntax/latextoc.vim')
-rw-r--r-- | syntax/latextoc.vim | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/syntax/latextoc.vim b/syntax/latextoc.vim new file mode 100644 index 00000000..0faca708 --- /dev/null +++ b/syntax/latextoc.vim @@ -0,0 +1,13 @@ +if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1 + +syntax match helpText /^.*: .*/ +syntax match secNum /^\S\+\(\.\S\+\)\?\s*/ contained conceal +syntax match secLine /^\S\+\t.\+/ contains=secNum +syntax match mainSecLine /^[^\.]\+\t.*/ contains=secNum +syntax match ssubSecLine /^[^\.]\+\.[^\.]\+\.[^\.]\+\t.*/ contains=secNum +highlight link helpText PreProc +highlight link secNum Number +highlight link mainSecLine Title +highlight link ssubSecLine Comment + +endif |