patch 9.1.0636: filetype: ziggy files are not recognized
Commit:
https://github.com/vim/vim/commit/f4572cee35a6c224985e71116e676ab711c09af3
Author: EliSauder <[email protected]>
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 <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/filetype.vim b/runtime/filetype.vim
index bdf591ac7..676738078 100644
--- a/runtime/filetype.vim
+++ b/runtime/filetype.vim
@@ -2196,6 +2196,10 @@ au BufNewFile,BufRead
.login,.cshrc,csh.cshrc,csh.login,csh.logout,*.csh,.alias
" 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
diff --git a/src/testdir/test_filetype.vim b/src/testdir/test_filetype.vim
index 3aa3e97f4..9c2a5e8e5 100644
--- a/src/testdir/test_filetype.vim
+++ b/src/testdir/test_filetype.vim
@@ -864,6 +864,8 @@ def s:GetFilenameChecks(): dict<list<string>>
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'],
diff --git a/src/version.c b/src/version.c
index a321cc53e..d526d9f46 100644
--- a/src/version.c
+++ b/src/version.c
@@ -704,6 +704,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 636,
/**/
635,
/**/
--
--
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php
---
You received this message because you are subscribed to the Google Groups
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vim_dev/E1sY9pI-00HJTq-8s%40256bit.org.