runtime(graphql): contribute vim-graphql to Vim core

Contribute the core of my vim-graphql project (ftplugin, indent, syntax)
to the Vim project. This replaces the basic ftplugin support that was
already in the runtime with a more complete set of filetype settings. I
can assume maintainership for all of these files.

I'll continue to maintain the higher-level embedded filetype support
separately (in vim-graphql) for now, because it's fairly complex, but we
can consider integrating that code directly into vim later.

runtime files use the MIT license.

closes: #16273

Signed-off-by: Jon Parise <jon@indelible.org>
Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
Jon Parise
2024-12-23 09:57:42 +01:00
committed by Christian Brabandt
parent 89a107efd1
commit 4ce1cb5bf1
4 changed files with 198 additions and 5 deletions

View File

@ -1,13 +1,22 @@
" Vim filetype plugin
" Language: graphql
" Maintainer: Riley Bruins <ribru17@gmail.com>
" Last Change: 2024 May 18
" Maintainer: Jon Parise <jon@indelible.org>
" Filenames: *.graphql *.graphqls *.gql
" URL: https://github.com/jparise/vim-graphql
" License: MIT <https://opensource.org/license/mit>
" Last Change: 2024 Dec 21
if exists('b:did_ftplugin')
finish
endif
let b:did_ftplugin = 1
setl comments=:# commentstring=#\ %s
setlocal comments=:#
setlocal commentstring=#\ %s
setlocal formatoptions-=t
setlocal iskeyword+=$,@-@
setlocal softtabstop=2
setlocal shiftwidth=2
setlocal expandtab
let b:undo_ftplugin = 'setl com< cms<'
let b:undo_ftplugin = 'setlocal com< cms< fo< isk< sts< sw< et<'