vim-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: vim/vim#13405

84394f2be4

Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
This commit is contained in:
Christian Clason 2023-10-23 19:19:58 +02:00
parent d432bba4e4
commit 5f0224e848
2 changed files with 3 additions and 0 deletions

View File

@ -459,6 +459,8 @@ local extension = {
gift = 'gift',
gleam = 'gleam',
glsl = 'glsl',
gn = 'gn',
gni = 'gn',
gpi = 'gnuplot',
go = 'go',
gp = 'gp',

View File

@ -267,6 +267,7 @@ func s:GetFilenameChecks() abort
\ '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'],