Mercurial > vim
changeset 35835:fe87bfd2689d v9.1.0636
patch 9.1.0636: filetype: ziggy files are not recognized
Commit: https://github.com/vim/vim/commit/f4572cee35a6c224985e71116e676ab711c09af3
Author: EliSauder <24995216+EliSauder@users.noreply.github.com>
Date: Sun Jul 28 21:32:38 2024 +0200
patch 9.1.0636: filetype: ziggy files are not recognized
Problem: filetype: ziggy files are not recognized
Solution: detect '*.ziggy' files as ziggy filetype,
detect '*.ziggy-schema' files as ziggy-schema filetype
(EliSauder)
References: https://ziggy-lang.io/
fixes: #15355
closes: #15367
Signed-off-by: EliSauder <24995216+EliSauder@users.noreply.github.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Sun, 28 Jul 2024 21:45:04 +0200 |
parents | 626d10100885 |
children | 2ca46c4ecb59 |
files | runtime/filetype.vim src/testdir/test_filetype.vim src/version.c |
diffstat | 3 files changed, 8 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/runtime/filetype.vim +++ b/runtime/filetype.vim @@ -2196,6 +2196,10 @@ au BufNewFile,BufRead .login,.cshrc,csh. " Zig and Zig Object Notation (ZON) au BufNewFile,BufRead *.zig,*.zon setf zig +" Ziggy and Ziggy Schema +au BufNewFile,BufRead *.ziggy setf ziggy +au BufNewFile,BufRead *.ziggy-schema setf ziggy_schema + " Zserio au BufNewFile,BufRead *.zs setf zserio
--- a/src/testdir/test_filetype.vim +++ b/src/testdir/test_filetype.vim @@ -864,6 +864,8 @@ def s:GetFilenameChecks(): dict<list<str z8a: ['file.z8a'], zathurarc: ['zathurarc'], zig: ['file.zig', 'build.zig.zon'], + ziggy: ['file.ziggy'], + ziggy_schema: ['file.ziggy-schema'], zimbu: ['file.zu'], zimbutempl: ['file.zut'], zserio: ['file.zs'],