summaryrefslogtreecommitdiffstats
path: root/syntax/latextoc.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/latextoc.vim')
-rw-r--r--syntax/latextoc.vim8
1 files changed, 4 insertions, 4 deletions
diff --git a/syntax/latextoc.vim b/syntax/latextoc.vim
index 0faca708..fbcbc01e 100644
--- a/syntax/latextoc.vim
+++ b/syntax/latextoc.vim
@@ -1,5 +1,7 @@
-if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'latex') == -1
-
+if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'latex') != -1
+ finish
+endif
+
syntax match helpText /^.*: .*/
syntax match secNum /^\S\+\(\.\S\+\)\?\s*/ contained conceal
syntax match secLine /^\S\+\t.\+/ contains=secNum
@@ -9,5 +11,3 @@ highlight link helpText PreProc
highlight link secNum Number
highlight link mainSecLine Title
highlight link ssubSecLine Comment
-
-endif