summaryrefslogtreecommitdiffstats
path: root/syntax/latextoc.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/latextoc.vim')
-rw-r--r--syntax/latextoc.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/syntax/latextoc.vim b/syntax/latextoc.vim
index fbcbc01e..c5713eb6 100644
--- a/syntax/latextoc.vim
+++ b/syntax/latextoc.vim
@@ -1,7 +1,4 @@
-if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'latex') != -1
- finish
-endif
-
+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
@@ -11,3 +8,4 @@ highlight link helpText PreProc
highlight link secNum Number
highlight link mainSecLine Title
highlight link ssubSecLine Comment
+endif