mirror of
https://github.com/vim/vim.git
synced 2025-09-23 03:43:49 -04:00
patch 9.0.2097: No support for cypher files
Problem: No support for cypher files Solution: Add cypher filetype detection Cypher query language support to work with (mostly) graph databases. Already existing lsp support in Neovim's nvim-lspconfig: https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#cypher_ls closes: #13516 Signed-off-by: Gerrit Meier <meistermeier@gmail.com> Signed-off-by: Christian Brabandt <cb@256bit.org>
This commit is contained in:
committed by
Christian Brabandt
parent
03042a2753
commit
8f0fe20ff1
@@ -342,6 +342,9 @@ au BufNewFile,BufRead *.cc
|
||||
au BufNewFile,BufRead *.cpp
|
||||
\ if exists("cynlib_syntax_for_cpp")|setf cynlib|else|setf cpp|endif
|
||||
|
||||
" Cypher query language
|
||||
au BufNewFile,BufRead *.cypher setf cypher
|
||||
|
||||
" C++
|
||||
au BufNewFile,BufRead *.cxx,*.c++,*.hh,*.hxx,*.hpp,*.ipp,*.moc,*.tcc,*.inl setf cpp
|
||||
if has("fname_case")
|
||||
|
@@ -186,6 +186,7 @@ def s:GetFilenameChecks(): dict<list<string>>
|
||||
cvs: ['cvs123'],
|
||||
cvsrc: ['.cvsrc'],
|
||||
cynpp: ['file.cyn'],
|
||||
cypher: ['file.cypher'],
|
||||
d: ['file.d'],
|
||||
dart: ['file.dart', 'file.drt'],
|
||||
datascript: ['file.ds'],
|
||||
|
@@ -704,6 +704,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
2097,
|
||||
/**/
|
||||
2096,
|
||||
/**/
|
||||
|
Reference in New Issue
Block a user