summaryrefslogtreecommitdiffstats
path: root/syntax/dune.vim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--syntax/dune.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/syntax/dune.vim b/syntax/dune.vim
index 4e2c2afe..900c08b7 100644
--- a/syntax/dune.vim
+++ b/syntax/dune.vim
@@ -1,7 +1,4 @@
-if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'ocaml') != -1
- finish
-endif
-
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'ocaml') == -1
if exists("b:current_syntax")
finish
endif
@@ -38,3 +35,4 @@ syn match duneVar '\${\k\+\(:\k\+\)\?}' containedin=lispSymbol
hi def link duneVar Identifier
let b:current_syntax = "dune"
+endif