summaryrefslogtreecommitdiffstats
path: root/syntax/graphql.vim
diff options
context:
space:
mode:
authorAdam Stankiewicz <sheerun@sher.pl>2020-12-29 19:44:40 +0100
committerAdam Stankiewicz <sheerun@sher.pl>2020-12-29 19:44:40 +0100
commit95d82fdb668b746ac100a8b7d2aca38038150707 (patch)
tree19f2e80acbab5efe1d35630faafb5e24d7230fd8 /syntax/graphql.vim
parent73c518717741fb3ebb6822645d38f37ffae7c19b (diff)
downloadvim-polyglot-95d82fdb668b746ac100a8b7d2aca38038150707.tar.gz
vim-polyglot-95d82fdb668b746ac100a8b7d2aca38038150707.zip
Update
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'