]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.0.2097: No support for cypher files v9.0.2097
authorGerrit Meier <meistermeier@gmail.com>
Sat, 11 Nov 2023 07:58:26 +0000 (08:58 +0100)
committerChristian Brabandt <cb@256bit.org>
Sat, 11 Nov 2023 07:58:26 +0000 (08:58 +0100)
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>
runtime/filetype.vim
src/testdir/test_filetype.vim
src/version.c

index 0de6171d62ae668e0080364ba0a3e2a277103ebe..7fb92a2713ac8fa49d746f0f185d26edb53b6b89 100644 (file)
@@ -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")
index bde5c1bc4338a08f6dc9c0521be9a59828bd3ab9..6cfd69fb13df7add0137655383ac7a8eead94ea9 100644 (file)
@@ -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'],
index 292df39b4c4030991a4c821bb14f4d82268730f7..0883caee4b465d19b2d6e94d199e75e1703232e0 100644 (file)
@@ -704,6 +704,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2097,
 /**/
     2096,
 /**/