diff options
Diffstat (limited to 'syntax/graphql.vim')
| -rw-r--r-- | syntax/graphql.vim | 9 | 
1 files changed, 6 insertions, 3 deletions
| diff --git a/syntax/graphql.vim b/syntax/graphql.vim index 71dc766a..8a7f07c5 100644 --- a/syntax/graphql.vim +++ b/syntax/graphql.vim @@ -4,7 +4,7 @@ if !exists('g:polyglot_disabled') || index(g:polyglot_disabled, 'graphql') == -1  " Language: GraphQL  " Maintainer: Jon Parise <jon@indelible.org> -if exists("b:current_syntax") +if exists('b:current_syntax')      finish  endif @@ -20,9 +20,11 @@ syn keyword graphqlNull     null  syn match   graphqlNumber   "-\=\<\%(0\|[1-9]\d*\)\%(\.\d\+\)\=\%([eE][-+]\=\d\+\)\=\>"  syn region  graphqlString	start=+"+  skip=+\\\\\|\\"+  end=+"\|$+ +syn keyword graphqlKeyword on nextgroup=graphqlType skipwhite +  syn keyword graphqlStructure enum scalar type union nextgroup=graphqlType skipwhite  syn keyword graphqlStructure input interface subscription nextgroup=graphqlType skipwhite -syn keyword graphqlStructure implements on nextgroup=graphqlType skipwhite +syn keyword graphqlStructure implements nextgroup=graphqlType skipwhite  syn keyword graphqlStructure query mutation fragment nextgroup=graphqlIdentifier skipwhite  syn keyword graphqlStructure directive nextgroup=graphqlDirective skipwhite  syn keyword graphqlStructure extend nextgroup=graphqlStructure skipwhite @@ -53,12 +55,13 @@ hi def link graphqlConstant         Constant  hi def link graphqlDirective        PreProc  hi def link graphqlIdentifier       Identifier  hi def link graphqlMetaFields       Special +hi def link graphqlKeyword          Keyword  hi def link graphqlStructure        Structure  hi def link graphqlType             Type  hi def link graphqlVariable         Identifier  syn sync minlines=500 -let b:current_syntax = "graphql" +let b:current_syntax = 'graphql'  endif | 
