-
Notifications
You must be signed in to change notification settings - Fork 58
Add syntax based folding for block comments #69
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Conversation
This also enables folding of multiple consecutive line comments as a single block.
7445bb2 to
b2a0b11
Compare
By Doug Kearns:
* Add syntax based folding for block comments
Conflicts:
- syntax/racket.vim has undergone many changes since this patch was
first sent in 2021. Notably, we expanded "syn" to "syntax", added a
"FormComment", converted "racketNormal" to "racketTop", and ripped
out "HiLink". See relevant commits:
- 25386d9 (syntax: greatly simplify quoting and nesting, 2020-12-28)
- c75129d (syntax: add simple form-level comment (#;), 2020-12-28)
- af2980a (syntax: remove special handling of Vim 5, 2022-01-26)
- 9f9a3ae (Use unabbreviated 'syntax' command name, 2022-08-11)
PR: wlangstroth#69
|
@dkearns I've attempted to merge this to https://github.com/benknoble/vim-racket (see results in https://github.com/benknoble/vim-racket/tree/merge-69). Can you let me know if that merge looks correct to you? I'll test drive it a bit, too. In particular, look at 32d4343 (Merge syntax based folding for block comments, 2025-09-10). |
|
From a quick drive, it looks like it works to me for folding. I didn't try the "no_fold" override. |
By Doug Kearns:
* Add syntax based folding for block comments
Conflicts:
- syntax/racket.vim has undergone many changes since this patch was
first sent in 2021. Notably, we expanded "syn" to "syntax", added a
"FormComment", converted "racketNormal" to "racketTop", and ripped
out "HiLink". See relevant commits:
- 25386d9 (syntax: greatly simplify quoting and nesting, 2020-12-28)
- c75129d (syntax: add simple form-level comment (#;), 2020-12-28)
- af2980a (syntax: remove special handling of Vim 5, 2022-01-26)
- 9f9a3ae (Use unabbreviated 'syntax' command name, 2022-08-11)
PR: wlangstroth#69
Best-viewed-with: --diff-merges=1
|
I did have to push one fix to the range-diff: re-include form comments in racketTop |
|
I've gone ahead and pushed my merge of this to benknoble/vim-racket's master branch. |
This also enables folding of multiple consecutive line comments as a
single block.