vim-patch:9.1.0880: filetype: C3 files are not recognized

Problem:  filetype: C3 files are not recognized
Solution: detect '*.c3*' files as c3 filetype (Turiiya)

closes: vim/vim#16087

c8dfcfc53b

Co-authored-by: Turiiya <34311583+ttytm@users.noreply.github.com>
This commit is contained in:
Christian Clason 2024-11-20 08:51:39 +01:00 committed by Christian Clason
parent 23ead4f2cb
commit f55c842ec7
2 changed files with 4 additions and 0 deletions

View File

@ -275,6 +275,9 @@ local extension = {
mdh = 'c',
epro = 'c',
qc = 'c',
c3 = 'c3',
c3i = 'c3',
c3t = 'c3',
cabal = 'cabal',
cairo = 'cairo',
capnp = 'capnp',

View File

@ -144,6 +144,7 @@ func s:GetFilenameChecks() abort
\ 'bzl': ['file.bazel', 'file.bzl', 'WORKSPACE', 'WORKSPACE.bzlmod'],
\ 'bzr': ['bzr_log.any', 'bzr_log.file'],
\ 'c': ['enlightenment/file.cfg', 'file.qc', 'file.c', 'some-enlightenment/file.cfg', 'file.mdh', 'file.epro'],
\ 'c3': ['file.c3', 'file.c3i', 'file.c3t'],
\ 'cabal': ['file.cabal'],
\ 'cabalconfig': ['cabal.config', expand("$HOME/.config/cabal/config")] + s:WhenConfigHome('$XDG_CONFIG_HOME/cabal/config'),
\ 'cabalproject': ['cabal.project', 'cabal.project.local'],