neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit d77a32d805871ad8e08af809f76ec74c1df4a64c
parent 4faf23679e0c90b86466fa57cb5d97641ceb9a16
Author: zeertzjq <zeertzjq@outlook.com>
Date:   Fri,  9 Jan 2026 09:37:14 +0800

vim-patch:a71e52a: runtime(racket): update Racket syntax file

This brings us to upstream commit f251a43 (Merge syntax based folding
for block comments, 2025-09-10). Note that not all upstream files are
included.

closes: vim/vim#19126

https://github.com/vim/vim/commit/a71e52a0b104c645144d3c7cde5534b9fa9aa9c6

Co-authored-by: D. Ben Knoble <ben.knoble+github@gmail.com>

Diffstat:
Mruntime/syntax/racket.vim | 16++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)

diff --git a/runtime/syntax/racket.vim b/runtime/syntax/racket.vim @@ -4,7 +4,7 @@ " Previous Maintainer: Will Langstroth <will@langstroth.com> " URL: https://github.com/benknoble/vim-racket " Description: Contains all of the keywords in #lang racket -" Last Change: 2025 Aug 09 +" Last Change: 2026 Jan 07 " Initializing: if exists("b:current_syntax") @@ -605,13 +605,21 @@ syntax match racketUnquote ",@" " Comments syntax match racketSharpBang "\%^#![ /].*" display syntax match racketComment /;.*$/ contains=racketTodo,racketNote,@Spell -syntax region racketMultilineComment start=/#|/ end=/|#/ contains=racketMultilineComment,racketTodo,racketNote,@Spell syntax match racketFormComment "#;" nextgroup=@racketTop +syntax cluster racketTop add=racketFormComment + +if exists("racket_no_comment_fold") + syntax region racketBlockComment start=/#|/ end=/|#/ contains=racketBlockComment,racketTodo,racketNote,@Spell +else + syntax region racketBlockComment start=/#|/ end=/|#/ contains=racketBlockComment,racketTodo,racketNote,@Spell fold + syntax region racketMultilineComment start="^\s*;" end="^\%(\s*;\)\@!" contains=racketComment transparent keepend fold +endif syntax match racketTodo /\C\<\(FIXME\|TODO\|XXX\)\ze:\?\>/ contained syntax match racketNote /\CNOTE\ze:\?/ contained -syntax cluster racketTop add=racketQuote,racketUnquote,racketComment,racketMultilineComment,racketFormComment +syntax cluster racketComments contains=racketComment,racketBlockComment,racketMultilineComment +syntax cluster racketTop add=racketQuote,racketUnquote,@racketComments " Synchronization and the wrapping up... syntax sync match matchPlace grouphere NONE "^[^ \t]" @@ -644,7 +652,7 @@ highlight default link racketLit Type highlight default link racketRe Type highlight default link racketComment Comment -highlight default link racketMultilineComment Comment +highlight default link racketBlockComment Comment highlight default link racketFormComment SpecialChar highlight default link racketSharpBang Comment highlight default link racketTodo Todo