summaryrefslogtreecommitdiffstats
path: root/syntax/rnoweb.vim
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--syntax/rnoweb.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/syntax/rnoweb.vim b/syntax/rnoweb.vim
index 40a86b50..5b09f3dc 100644
--- a/syntax/rnoweb.vim
+++ b/syntax/rnoweb.vim
@@ -1,7 +1,4 @@
-if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'r-lang') != -1
- finish
-endif
-
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'r-lang') == -1
" Vim syntax file
" Language: R noweb Files
" Maintainer: Johannes Ranke <jranke@uni-bremen.de>
@@ -58,3 +55,4 @@ hi def link rnowebChunkReference Delimiter
let b:current_syntax = "rnoweb"
" vim: foldmethod=marker:
+endif