Mercurial > vim
changeset 23316:32cc5e9875bb v8.2.2203
patch 8.2.2203: Moodle gift files are not recognized
Commit: https://github.com/vim/vim/commit/b34f33747223d9cba4b32a27aee70c1705b36ed9
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Dec 24 13:33:46 2020 +0100
patch 8.2.2203: Moodle gift files are not recognized
Problem: Moodle gift files are not recognized.
Solution: Add a filetype pattern. (Delim Temizer)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 24 Dec 2020 13:45:04 +0100 |
parents | 714f77a21728 |
children | 0aa1d1862cb9 |
files | runtime/filetype.vim src/testdir/test_filetype.vim src/version.c |
diffstat | 3 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -627,6 +627,9 @@ au BufNewFile,BufRead *.mo,*.gdmo setf " Gedcom au BufNewFile,BufRead *.ged,lltxxxxx.txt setf gedcom +" Gift (Moodle) +autocmd BufRead,BufNewFile *.gift setf gift + " Git au BufNewFile,BufRead COMMIT_EDITMSG,MERGE_MSG,TAG_EDITMSG setf gitcommit au BufNewFile,BufRead *.git/config,.gitconfig,/etc/gitconfig setf gitconfig
--- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -185,6 +185,7 @@ let s:filename_checks = { \ 'gdb': ['.gdbinit'], \ 'gdmo': ['file.mo', 'file.gdmo'], \ 'gedcom': ['file.ged', 'lltxxxxx.txt', '/tmp/lltmp', '/tmp/lltmp-file', 'any/tmp/lltmp', 'any/tmp/lltmp-file'], + \ 'gift': ['file.gift'], \ 'gitcommit': ['COMMIT_EDITMSG', 'MERGE_MSG', 'TAG_EDITMSG'], \ 'gitconfig': ['file.git/config', '.gitconfig', '.gitmodules', 'file.git/modules//config', '/.config/git/config', '/etc/gitconfig', '/etc/gitconfig.d/file', '/.gitconfig.d/file', 'any/.config/git/config', 'any/.gitconfig.d/file', 'some.git/config', 'some.git/modules/any/config'], \ 'gitolite': ['gitolite.conf', '/gitolite-admin/conf/file', 'any/gitolite-admin/conf/file'],