summaryrefslogtreecommitdiffstats
path: root/syntax/graphql.vim
diff options
context:
space:
mode:
Diffstat (limited to 'syntax/graphql.vim')
-rw-r--r--syntax/graphql.vim4
1 files changed, 3 insertions, 1 deletions
diff --git a/syntax/graphql.vim b/syntax/graphql.vim
index a41f8251..a5351b08 100644
--- a/syntax/graphql.vim
+++ b/syntax/graphql.vim
@@ -94,6 +94,8 @@ hi def link graphqlStructure Structure
hi def link graphqlType Type
hi def link graphqlVariable Identifier
-syn sync minlines=500
+if !get(b:, 'graphql_nested_syntax')
+ syn sync minlines=500
+endif
let b:current_syntax = 'graphql'