runtime(racket): update Racket syntax file
Commit:
https://github.com/vim/vim/commit/a71e52a0b104c645144d3c7cde5534b9fa9aa9c6
Author: D. Ben Knoble <[email protected]>
Date: Thu Jan 8 20:26:23 2026 +0000
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: #19126
Signed-off-by: D. Ben Knoble <[email protected]>
Signed-off-by: Christian Brabandt <[email protected]>
diff --git a/runtime/syntax/racket.vim b/runtime/syntax/racket.vim
index e9b70a1b0..1405e4b2d 100644
--- a/runtime/syntax/racket.vim
+++ b/runtime/syntax/racket.vim
@@ -4,7 +4,7 @@
" Previous Maintainer: Will Langstroth <[email protected]>
" 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 "^[^ ]"
@@ -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
--
--
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 visit
https://groups.google.com/d/msgid/vim_dev/E1vdwe1-003BJk-12%40256bit.org.