vim-patch:9.0.0932: Oblivion files are not recognized (#21179)

Problem:    Oblivion files are not recognized.
Solution:   Recognize Oblivion files and alike as "obse". (closes vim/vim#11540)

ecfd511e8d

Co-authored-by: Bram Moolenaar <Bram@vim.org>
This commit is contained in:
zeertzjq
2022-11-25 16:17:30 +08:00
committed by GitHub
parent 5ca1f48b40
commit 7875e1377c
2 changed files with 5 additions and 0 deletions

View File

@@ -729,6 +729,10 @@ local extension = {
nsi = 'nsis',
nsh = 'nsis',
obj = 'obj',
obl = 'obse',
obse = 'obse',
oblivion = 'obse',
obscript = 'obse',
mlt = 'ocaml',
mly = 'ocaml',
mll = 'ocaml',

View File

@@ -396,6 +396,7 @@ let s:filename_checks = {
\ 'nroff': ['file.tr', 'file.nr', 'file.roff', 'file.tmac', 'file.mom', 'tmac.file'],
\ 'nsis': ['file.nsi', 'file.nsh'],
\ 'obj': ['file.obj'],
\ 'obse': ['file.obl', 'file.obse', 'file.oblivion', 'file.obscript'],
\ 'ocaml': ['file.ml', 'file.mli', 'file.mll', 'file.mly', '.ocamlinit', 'file.mlt', 'file.mlp', 'file.mlip', 'file.mli.cppo', 'file.ml.cppo'],
\ 'occam': ['file.occ'],
\ 'octave': ['octaverc', '.octaverc', 'octave.conf'],