From 524f4225649b8ab88313c7ce9bf2a7ead684d077 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 22 Jan 2026 07:27:08 +0800 Subject: [PATCH 1/2] vim-patch:87635dc: runtime(kitty): Add kitty ftplugin file closes: vim/vim#19232 https://github.com/vim/vim/commit/87635dcb5ad0b55cddc71ca7e9bc312ef87d5246 Co-authored-by: Arvin Verain --- runtime/ftplugin/kitty.vim | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 runtime/ftplugin/kitty.vim diff --git a/runtime/ftplugin/kitty.vim b/runtime/ftplugin/kitty.vim new file mode 100644 index 0000000000..c15e5e0b88 --- /dev/null +++ b/runtime/ftplugin/kitty.vim @@ -0,0 +1,13 @@ +" Vim filetype plugin +" Language: kitty +" Maintainer: Arvin Verain +" Last Change: 2026 Jan 22 + +if exists('b:did_ftplugin') + finish +endif +let b:did_ftplugin = 1 + +setl comments=:# commentstring=#\ %s formatoptions-=t formatoptions+=rol + +let b:undo_ftplugin = 'setl com< cms< fo<' From 35d8dcd020edbc4a59af968369a762c790f3ac36 Mon Sep 17 00:00:00 2001 From: zeertzjq Date: Thu, 22 Jan 2026 07:28:03 +0800 Subject: [PATCH 2/2] vim-patch:81f1c5d: runtime(debcontrol): improve Debian syntax files Changes to debcontrol: - Only use debcontrolEmail for Maintainer/Uploaders - Add Build-Driver to debcontrolField - Add Protected to debcontrolStrictField - Remove Uploaders from the more generic region - Add explicit support for highlighting build profiles - Add explicit support for highlighting architecture specifications - Fix URL for sections.822 Changes to debversions: - Move plucky to unsupported closes: vim/vim#19228 https://github.com/vim/vim/commit/81f1c5d3846c04bfb77165639c7dfef9f7304815 Co-authored-by: James McCoy --- runtime/syntax/debcontrol.vim | 32 ++++++++++++++++++++++----- runtime/syntax/shared/debversions.vim | 6 ++--- 2 files changed, 29 insertions(+), 9 deletions(-) diff --git a/runtime/syntax/debcontrol.vim b/runtime/syntax/debcontrol.vim index e98a6d3f36..7b4d14062a 100644 --- a/runtime/syntax/debcontrol.vim +++ b/runtime/syntax/debcontrol.vim @@ -3,7 +3,7 @@ " Maintainer: Debian Vim Maintainers " Former Maintainers: Gerfried Fuchs " Wichert Akkerman -" Last Change: 2025 Jul 05 +" Last Change: 2026 Jan 20 " URL: https://salsa.debian.org/vim-team/vim-debian/blob/main/syntax/debcontrol.vim " Standard syntax initialization @@ -34,7 +34,7 @@ exe 'syn keyword debcontrolArchitecture contained '. join(g:debArchitectureKerne exe 'syn keyword debcontrolArchitecture contained '. join(g:debArchitectureAnyKernelArch) exe 'syn keyword debcontrolArchitecture contained '. join(g:debArchitectureArchs) -" Keep in sync with https://metadata.ftp-master.org/sections.822 +" Keep in sync with https://metadata.ftp-master.debian.org/sections.822 " curl -q https://metadata.ftp-master.debian.org/sections.822 2>/dev/null| grep-dctrl -n --not -FSection -sSection / - let s:sections = [ \ 'admin', 'cli-mono', 'comm', 'database', 'debian-installer', 'debug' @@ -74,14 +74,32 @@ syn match debcontrolEmail "<.\{-}>" " #-Comments syn match debcontrolComment "^#.*$" contains=@Spell +" Build profiles +" Since there's no official spec for the field, use dpkg's parsing +" (from BuildProfiles.pm) as the de facto spec +syn match debcontrolBuildProfile "<\@" contained + +" Architecture specification for a package relationship +let s:all_archs = join(g:debArchitectureKernelAnyArch, '\|') + \. '\|' + \. join(g:debArchitectureAnyKernelArch, '\|') + \. '\|' + \. join(g:debArchitectureArchs, '\|') +exe 'syn match debcontrolArchSpec "\[\s*!\=\%('. s:all_archs .'\)\%(\s\+!\=\%('. s:all_archs. '\)\)*\s*\]" contained' +unlet s:all_archs + syn case ignore " Handle all fields from deb-src-control(5) " Catch-all for the legal fields -syn region debcontrolField matchgroup=debcontrolKey start="^\%(\%(XSBC-Original-\)\=Maintainer\|Standards-Version\|Bugs\|Origin\|X[SB]-Python-Version\|\%(XS-\)\=Vcs-Mtn\|\%(XS-\)\=Testsuite\%(-Triggers\)\=\|Build-Profiles\|Tag\|Subarchitecture\|Kernel-Version\|Installer-Menu-Item\): " end="$" contains=debcontrolVariable,debcontrolEmail oneline -syn region debcontrolMultiField matchgroup=debcontrolKey start="^\%(Build-\%(Conflicts\|Depends\)\%(-Arch\|-Indep\)\=\|\%(Pre-\)\=Depends\|Recommends\|Suggests\|Breaks\|Enhances\|Replaces\|Conflicts\|Provides\|Built-Using\|Static-Built-Using\|Uploaders\|X[SBC]\{0,3\}\%(Private-\)\=-[-a-zA-Z0-9]\+\): *" skip="^[ \t]" end="^$"me=s-1 end="^[^ \t#]"me=s-1 contains=debcontrolEmail,debcontrolVariable,debcontrolComment -syn region debcontrolMultiFieldSpell matchgroup=debcontrolKey start="^Description: *" skip="^[ \t]" end="^$"me=s-1 end="^[^ \t#]"me=s-1 contains=debcontrolEmail,debcontrolVariable,debcontrolComment,@Spell +syn region debcontrolField matchgroup=debcontrolKey start="^\%(XSBC-Original-\)\=Maintainer: " end="$" contains=debcontrolVariable,debcontrolEmail oneline +syn region debcontrolField matchgroup=debcontrolKey start="^Build-Profiles: " end="$" contains=debcontrolVariable,debcontrolBuildProfile oneline +syn region debcontrolField matchgroup=debcontrolKey start="^\%(Standards-Version\|Bugs\|Origin\|X[SB]-Python-Version\|\%(XS-\)\=Vcs-Mtn\|\%(XS-\)\=Testsuite\%(-Triggers\)\=\|Build-Driver\|Tag\|Subarchitecture\|Kernel-Version\|Installer-Menu-Item\): " end="$" contains=debcontrolVariable oneline +syn region debcontrolMultiField matchgroup=debcontrolKey start="^\%(Build-\%(Conflicts\|Depends\)\%(-Arch\|-Indep\)\=\|\%(Pre-\)\=Depends\|Recommends\|Suggests\|Breaks\|Enhances\|Replaces\|Conflicts\|Provides\|Built-Using\|Static-Built-Using\): *" skip="^[ \t]" end="^$"me=s-1 end="^[^ \t#]"me=s-1 contains=debcontrolVariable,debcontrolComment,debcontrolBuildProfile,debcontrolArchSpec +syn region debcontrolMultiField matchgroup=debcontrolKey start="^X[SBC]\{0,3\}\%(Private-\)\=-[-a-zA-Z0-9]\+: *" skip="^[ \t]" end="^$"me=s-1 end="^[^ \t#]"me=s-1 contains=debcontrolVariable,debcontrolComment +syn region debcontrolMultiField matchgroup=debcontrolKey start="^Uploaders: *" skip="^[ \t]" end="^$"me=s-1 end="^[^ \t#]"me=s-1 contains=debcontrolEmail,debcontrolVariable,debcontrolComment +syn region debcontrolMultiFieldSpell matchgroup=debcontrolKey start="^Description: *" skip="^[ \t]" end="^$"me=s-1 end="^[^ \t#]"me=s-1 contains=debcontrolVariable,debcontrolComment,@Spell " Fields for which we do strict syntax checking syn region debcontrolStrictField matchgroup=debcontrolKey start="^Architecture: *" end="$" contains=debcontrolArchitecture,debcontrolSpace oneline @@ -96,7 +114,7 @@ syn region debcontrolStrictField matchgroup=debcontrolKey start="^\%(XS-[-a-zA-Z syn region debcontrolStrictField matchgroup=debcontrolKey start="^\%(XS-[-a-zA-Z0-9]\+-\)\=Vcs-Cvs: *" end="$" contains=debcontrolVcsCvs oneline keepend syn region debcontrolStrictField matchgroup=debcontrolKey start="^\%(XS-[-a-zA-Z0-9]\+-\)\=Vcs-Git: *" end="$" contains=debcontrolVcsGit oneline keepend syn region debcontrolStrictField matchgroup=debcontrolKey start="^Rules-Requires-Root: *" end="$" contains=debcontrolR3 oneline -syn region debcontrolStrictField matchgroup=debcontrolKey start="^\%(Build-\)\=Essential: *" end="$" contains=debcontrolYesNo oneline +syn region debcontrolStrictField matchgroup=debcontrolKey start="^\%(\%(Build-\)\=Essential\|Protected\): *" end="$" contains=debcontrolYesNo oneline syn region debcontrolStrictField matchgroup=debcontrolDeprecatedKey start="^\%(XS-\)\=DM-Upload-Allowed: *" end="$" contains=debcontrolDmUpload oneline @@ -113,6 +131,8 @@ hi def link debcontrolPriority Normal hi def link debcontrolSection Normal hi def link debcontrolPackageType Normal hi def link debcontrolVariable Identifier +hi def link debcontrolArchSpec Identifier +hi def link debcontrolBuildProfile Identifier hi def link debcontrolEmail Identifier hi def link debcontrolVcsSvn Identifier hi def link debcontrolVcsCvs Identifier diff --git a/runtime/syntax/shared/debversions.vim b/runtime/syntax/shared/debversions.vim index 1ba6c7a99f..2548ddd350 100644 --- a/runtime/syntax/shared/debversions.vim +++ b/runtime/syntax/shared/debversions.vim @@ -1,7 +1,7 @@ " Vim syntax file " Language: Debian version information " Maintainer: Debian Vim Maintainers -" Last Change: 2025 Oct 26 +" Last Change: 2026 Jan 01 " URL: https://salsa.debian.org/vim-team/vim-debian/blob/main/syntax/shared/debversions.vim let s:cpo = &cpo @@ -12,7 +12,7 @@ let g:debSharedSupportedVersions = [ \ 'oldstable', 'stable', 'testing', 'unstable', 'experimental', 'sid', 'rc-buggy', \ 'bookworm', 'trixie', 'forky', 'duke', \ - \ 'jammy', 'noble', 'plucky', 'questing', 'resolute', + \ 'jammy', 'noble', 'questing', 'resolute', \ 'devel' \ ] " Historic version names, no longer under standard support @@ -27,6 +27,6 @@ let g:debSharedUnsupportedVersions = [ \ 'trusty', 'utopic', 'vivid', 'wily', 'xenial', 'yakkety', 'zesty', \ 'artful', 'bionic', 'cosmic', 'disco', 'eoan', 'focal', 'groovy', \ 'hirsute', 'impish', 'kinetic', 'lunar', 'mantic', 'oracular', - \ ] + \ 'plucky', ] let &cpo=s:cpo