summaryrefslogtreecommitdiffstats
path: root/syntax/fbs.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/fbs.vim')
-rw-r--r--syntax/fbs.vim6
1 files changed, 2 insertions, 4 deletions
diff --git a/syntax/fbs.vim b/syntax/fbs.vim
index 90ee9409..340d3064 100644
--- a/syntax/fbs.vim
+++ b/syntax/fbs.vim
@@ -1,7 +1,4 @@
-if exists('g:polyglot_disabled') && index(g:polyglot_disabled, 'flatbuffers') != -1
- finish
-endif
-
+if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'flatbuffers') == -1
if exists("b:current_syntax")
finish
endif
@@ -54,3 +51,4 @@ if version >= 508 || !exists("did_proto_syn_inits")
endif
let b:current_syntax = "fbs"
+endif