Mercurial > vim
changeset 32154:8be608cee6e3 v9.0.1408
patch 9.0.1408: QMLdir files are not recognized
Commit: https://github.com/vim/vim/commit/1505bef5c482a48e704644e6172be91c07ef1d12
Author: Amaan Qureshi <amaanq12@gmail.com>
Date: Thu Mar 16 19:30:44 2023 +0000
patch 9.0.1408: QMLdir files are not recognized
Problem: QMLdir files are not recognized.
Solution: Add a pattern for QMLdir files. (Amaan Qureshi, closes https://github.com/vim/vim/issues/12161)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Thu, 16 Mar 2023 20:45:03 +0100 |
parents | 0c2403b4d014 |
children | 4812f6300361 |
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 @@ -1649,6 +1649,9 @@ au BufNewFile,BufRead *.ptl,*.pyi,SConst " QL au BufRead,BufNewFile *.ql,*.qll setf ql +" QMLdir +au BufRead,BufNewFile qmldir setf qmldir + " Quarto au BufRead,BufNewFile *.qmd setf quarto
--- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -471,6 +471,7 @@ let s:filename_checks = { \ 'pyrex': ['file.pyx', 'file.pxd'], \ 'python': ['file.py', 'file.pyw', '.pythonstartup', '.pythonrc', 'file.ptl', 'file.pyi', 'SConstruct'], \ 'ql': ['file.ql', 'file.qll'], + \ 'qmldir': ['qmldir'], \ 'quake': ['anybaseq2/file.cfg', 'anyid1/file.cfg', 'quake3/file.cfg', 'baseq2/file.cfg', 'id1/file.cfg', 'quake1/file.cfg', 'some-baseq2/file.cfg', 'some-id1/file.cfg', 'some-quake1/file.cfg'], \ 'quarto': ['file.qmd'], \ 'r': ['file.r', '.Rprofile', 'Rprofile', 'Rprofile.site'],