vim-patch:9.2.0046: filetype: neon files are not recoginzed (#38049)

Problem:  filetype: neon files are not recoginzed
Solution: Detect *.neon files as neon filetype
          (przepompownia)

Reference:
https://doc.nette.org/en/neon/format
https://github.com/fpob/nette.vim

closes: vim/vim#19496

ddd90672f2

Co-authored-by: przepompownia <przepompownia@users.noreply.github.com>
This commit is contained in:
zeertzjq
2026-02-25 07:53:43 +08:00
committed by GitHub
parent 844caca881
commit 327dcb8970
2 changed files with 2 additions and 0 deletions

View File

@@ -849,6 +849,7 @@ local extension = {
NSP = 'natural',
NSS = 'natural',
ncf = 'ncf',
neon = 'neon',
axs = 'netlinx',
axi = 'netlinx',
nginx = 'nginx',

View File

@@ -577,6 +577,7 @@ func s:GetFilenameChecks() abort
\ 'ncf': ['file.ncf'],
\ 'neomuttlog': ['/home/user/.neomuttdebug1'],
\ 'neomuttrc': ['Neomuttrc', '.neomuttrc', '.neomuttrc-file', '/.neomutt/neomuttrc', '/.neomutt/neomuttrc-file', 'Neomuttrc', 'Neomuttrc-file', 'any/.neomutt/neomuttrc', 'any/.neomutt/neomuttrc-file', 'neomuttrc', 'neomuttrc-file'],
\ 'neon': ['file.neon'],
\ 'netlinx': ['file.axs', 'file.axi'],
\ 'netrc': ['.netrc'],
\ 'nginx': ['file.nginx', 'nginxfile.conf', 'filenginx.conf', 'any/etc/nginx/file', 'any/usr/local/nginx/conf/file', 'any/nginx/file.conf'],