Commit: runtime(mbsync): Add support for TLSType in syntax script

1 view
Skip to first unread message

Christian Brabandt

unread,
Jun 4, 2025, 2:15:19 PM6/4/25
to vim...@googlegroups.com
runtime(mbsync): Add support for TLSType in syntax script

Commit: https://github.com/vim/vim/commit/bb78ea23c6db2883ea4c24d74ec26902e12c9cfc
Author: Filippo Bonazzi <filippo...@suse.com>
Date: Wed Jun 4 20:13:03 2025 +0200

runtime(mbsync): Add support for TLSType in syntax script

closes: https://github.com/vim/vim/issues/17438

Signed-off-by: Filippo Bonazzi <filippo...@suse.com>
Signed-off-by: Pierrick Guillaume <pguil...@fymyte.com>
Signed-off-by: Christian Brabandt <c...@256bit.org>

diff --git a/runtime/syntax/mbsync.vim b/runtime/syntax/mbsync.vim
index f1df4719c..7275d65c7 100644
--- a/runtime/syntax/mbsync.vim
+++ b/runtime/syntax/mbsync.vim
@@ -2,6 +2,7 @@
" Language: mbsyncrc
" Maintainer: Pierrick Guillaume <pguil...@fymyte.com>
" Last Change: 2025 Apr 13
+" 2025 Jun 04 by Vim project: match TLSType configuration variable
"
" Syntax support for mbsync config file

@@ -80,8 +81,9 @@ syn match mbsIAConfStPassCmd '^PassCmd\s\+\ze.*$' contains=mbsIAConf
syn match mbsIAConfStUseKeychain '^UseKeychain\s\+\ze.*$' contains=mbsIAConfItemK contained nextgroup=mbsBool transparent
syn match mbsIAConfStTunnel '^Tunnel\s\+\ze.*$' contains=mbsIAConfItemK contained nextgroup=mbsCommand transparent
syn match mbsIAConfStAuthMechs '^AuthMechs\s\+\ze.*$' contains=mbsIAConfItemK contained nextgroup=mbsPath transparent
-syn keyword mbsIAConfSSLTypeOpt None STARTTLS IMAPS contained
-syn match mbsIAConfStSSLType '^SSLType\s\+\ze.*$' contains=mbsIAConfItemK contained nextgroup=mbsIAConfSSLTypeOpt transparent
+syn keyword mbsIAConfTLSTypeOpt None STARTTLS IMAPS contained
+syn match mbsIAConfStSSLType '^SSLType\s\+\ze.*$' contains=mbsIAConfItemK contained nextgroup=mbsIAConfTLSTypeOpt transparent
+syn match mbsIAConfStTLSType '^TLSType\s\+\ze.*$' contains=mbsIAConfItemK contained nextgroup=mbsIAConfTLSTypeOpt transparent
syn match mbsIAConfSSLVersionsOpt '\%(SSLv3\|TLSv1\%(.[123]\)\?\)\%(\s\+\%(SSLv3\|TLSv1\%(.[123]\)\?\)\)*' contained
syn match mbsIAConfStSSLVersions '^SSLVersions\s\+\ze.*$' contains=mbsIAConfItemK contained nextgroup=mbsIAConfSSLVersionsOpt transparent
syn match mbsIAConfStSystemCertificates '^SystemCertificates\s\+\ze.*$' contains=mbsIAConfItemK contained nextgroup=mbsBool transparent
@@ -96,7 +98,7 @@ syn cluster mbsIAConfItem contains=mbsIAConfSt.*

syn keyword mbsIAConfItemK
\ IMAPAccount Host Port Timeout User UserCmd Pass PassCmd UseKeychain Tunnel
- \ AuthMechs SSLType SSLVersions SystemCertificates CertificateFile ClientCertificate
+ \ AuthMechs SSLType TLSType SSLVersions SystemCertificates CertificateFile ClientCertificate
\ ClientKey CipherString PipelineDepth DisableExtension[s] contained

syn region mbsIMAP4AccontsStore start="^IMAPAccount" end="^$" end="\%$" contains=@mbsGlobConfItem,mbsCommentL,@mbsIAConfItem,mbsError transparent
@@ -195,7 +197,7 @@ hi def link mbsMdSConfItemK Statement
hi def link mbsMdSConfSubFoldersOpt Keyword

hi def link mbsIAConfItemK Statement
-hi def link mbsIAConfSSLTypeOpt Keyword
+hi def link mbsIAConfTLSTypeOpt Keyword
hi def link mbsIAConfSSLVersionsOpt Keyword

hi def link mbsISConfItemK Statement
Reply all
Reply to author
Forward
0 new messages