patch 9.0.2060: *.{gn,gni} files are not recognized Commit: https://github.com/vim/vim/commit/84394f2be4a750f1e26b478e36de041663f4b5a4 Author: Amaan Qureshi <amaan...@gmail.com> Date: Mon Oct 23 19:16:14 2023 +0200
patch 9.0.2060: *.{gn,gni} files are not recognized Problem: *.{gn,gni} files are not recognized Solution: Detect some as gn filetype (without adding an extra filetype) Those come from: https://gn.googlesource.com/gn/ closes: #13405 Signed-off-by: Christian Brabandt <c...@256bit.org> Co-authored-by: Amaan Qureshi <amaan...@gmail.com> diff --git a/runtime/filetype.vim b/runtime/filetype.vim index 54bc7a55f..6fef4b77a 100644 --- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -818,6 +818,9 @@ au BufNewFile,BufRead *.gleam setf gleam " GLSL au BufNewFile,BufRead *.glsl setf glsl +" GN (generate ninja) files +au BufNewFile,BufRead *.gn,*.gni setf gn + " GP scripts (2.0 and onward) au BufNewFile,BufRead *.gp,.gprc setf gp diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim index ce4d5ea2c..bfaab514e 100644 --- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -277,6 +277,7 @@ def s:GetFilenameChecks(): dict<list<string>> gkrellmrc: ['gkrellmrc', 'gkrellmrc_x'], gleam: ['file.gleam'], glsl: ['file.glsl'], + gn: ['file.gn', 'file.gni'], gnash: ['gnashrc', '.gnashrc', 'gnashpluginrc', '.gnashpluginrc'], gnuplot: ['file.gpi', '.gnuplot'], go: ['file.go'], diff --git a/src/version.c b/src/version.c index 8f0a9c3ba..37a31fdac 100644 --- a/src/version.c +++ b/src/version.c @@ -704,6 +704,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2060, /**/ 2059, /**/ -- -- You received this message from the "vim_dev" maillist. Do not top-post! Type your reply below the text you are replying to. For more information, visit http://www.vim.org/maillist.php --- You received this message because you are subscribed to the Google Groups "vim_dev" group. To unsubscribe from this group and stop receiving emails from it, send an email to vim_dev+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/vim_dev/E1quykf-00202b-1k%40256bit.org.