vim-patch:8.2.2258: not all OCaml related files are detected

Problem:    Not all OCaml related files are detected.
Solution:   Update OCaml file type detection.  (Markus Mottl, closes vim/vim#7590)
beef4eeda5
This commit is contained in:
Jan Edmund Lazo
2021-01-01 16:17:48 -05:00
parent 86ae394aeb
commit b580cf83bd
2 changed files with 15 additions and 3 deletions

View File

@@ -495,6 +495,9 @@ au BufNewFile,BufRead *.com call dist#ft#BindzoneCheck('dcl')
" DOT " DOT
au BufNewFile,BufRead *.dot,*.gv setf dot au BufNewFile,BufRead *.dot,*.gv setf dot
" Dune
au BufNewFile,BufRead jbuild,dune,dune-project,dune-workspace setf dune
" Dylan - lid files " Dylan - lid files
au BufNewFile,BufRead *.lid setf dylanlid au BufNewFile,BufRead *.lid setf dylanlid
@@ -1121,8 +1124,8 @@ au BufNewFile,BufRead *.nse setf lua
" NSIS " NSIS
au BufNewFile,BufRead *.nsi,*.nsh setf nsis au BufNewFile,BufRead *.nsi,*.nsh setf nsis
" OCAML " OCaml
au BufNewFile,BufRead *.ml,*.mli,*.mll,*.mly,.ocamlinit setf ocaml au BufNewFile,BufRead *.ml,*.mli,*.mll,*.mly,.ocamlinit,*.mlt,*.mlp,*.mlip,*.mli.cppo,*.ml.cppo setf ocaml
" Occam " Occam
au BufNewFile,BufRead *.occ setf occam au BufNewFile,BufRead *.occ setf occam
@@ -1130,6 +1133,9 @@ au BufNewFile,BufRead *.occ setf occam
" Omnimark " Omnimark
au BufNewFile,BufRead *.xom,*.xin setf omnimark au BufNewFile,BufRead *.xom,*.xin setf omnimark
" OPAM
au BufNewFile,BufRead opam,*.opam,*.opam.template setf opam
" OpenROAD " OpenROAD
au BufNewFile,BufRead *.or setf openroad au BufNewFile,BufRead *.or setf openroad
@@ -1549,6 +1555,9 @@ au BufNewFile,BufRead *.scm,*.ss,*.rkt setf scheme
" Screen RC " Screen RC
au BufNewFile,BufRead .screenrc,screenrc setf screen au BufNewFile,BufRead .screenrc,screenrc setf screen
" Sexplib
au BufNewFile,BufRead *.sexp setf sexplib
" Simula " Simula
au BufNewFile,BufRead *.sim setf simula au BufNewFile,BufRead *.sim setf simula

View File

@@ -150,6 +150,7 @@ let s:filename_checks = {
\ 'dsl': ['file.dsl'], \ 'dsl': ['file.dsl'],
\ 'dtd': ['file.dtd'], \ 'dtd': ['file.dtd'],
\ 'dts': ['file.dts', 'file.dtsi'], \ 'dts': ['file.dts', 'file.dtsi'],
\ 'dune': ['jbuild', 'dune', 'dune-project', 'dune-workspace'],
\ 'dylan': ['file.dylan'], \ 'dylan': ['file.dylan'],
\ 'dylanintr': ['file.intr'], \ 'dylanintr': ['file.intr'],
\ 'dylanlid': ['file.lid'], \ 'dylanlid': ['file.lid'],
@@ -322,9 +323,10 @@ let s:filename_checks = {
\ 'nroff': ['file.tr', 'file.nr', 'file.roff', 'file.tmac', 'file.mom'], \ 'nroff': ['file.tr', 'file.nr', 'file.roff', 'file.tmac', 'file.mom'],
\ 'nsis': ['file.nsi', 'file.nsh'], \ 'nsis': ['file.nsi', 'file.nsh'],
\ 'obj': ['file.obj'], \ 'obj': ['file.obj'],
\ 'ocaml': ['file.ml', 'file.mli', 'file.mll', 'file.mly', '.ocamlinit'], \ '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'], \ 'occam': ['file.occ'],
\ 'omnimark': ['file.xom', 'file.xin'], \ 'omnimark': ['file.xom', 'file.xin'],
\ 'opam': ['opam', 'file.opam', 'file.opam.template'],
\ 'openroad': ['file.or'], \ 'openroad': ['file.or'],
\ 'ora': ['file.ora'], \ 'ora': ['file.ora'],
\ 'pamconf': ['/etc/pam.conf'], \ 'pamconf': ['/etc/pam.conf'],
@@ -398,6 +400,7 @@ let s:filename_checks = {
\ 'scheme': ['file.scm', 'file.ss', 'file.rkt'], \ 'scheme': ['file.scm', 'file.ss', 'file.rkt'],
\ 'scilab': ['file.sci', 'file.sce'], \ 'scilab': ['file.sci', 'file.sce'],
\ 'screen': ['.screenrc', 'screenrc'], \ 'screen': ['.screenrc', 'screenrc'],
\ 'sexplib': ['file.sexp'],
\ 'scss': ['file.scss'], \ 'scss': ['file.scss'],
\ 'sd': ['file.sd'], \ 'sd': ['file.sd'],
\ 'sdc': ['file.sdc'], \ 'sdc': ['file.sdc'],