runtime(jjdescription): Don't require a space to start comments Commit: https://github.com/vim/vim/commit/8f096845693fc7a170283ca5dcf8e13aea3ec273 Author: ash <a...@sorrel.sh> Date: Thu Apr 17 20:44:58 2025 +0200
runtime(jjdescription): Don't require a space to start comments Since jj v0.24.0 (December 2024), `JJ:` comments are recognised even when not followed by a space. closes: #17130 Signed-off-by: ash <a...@sorrel.sh> Signed-off-by: Gregory Anders <g...@gpanders.com> Signed-off-by: Christian Brabandt <c...@256bit.org> diff --git a/runtime/syntax/jjdescription.vim b/runtime/syntax/jjdescription.vim index 04848bcb3..bd1c6f22f 100644 --- a/runtime/syntax/jjdescription.vim +++ b/runtime/syntax/jjdescription.vim @@ -2,6 +2,7 @@ " Language: jj description " Maintainer: Gregory Anders <g...@gpanders.com> " Last Change: 2024 May 8 +" 2025 Apr 17 by Vim Project (don't require space to start comments, #17130) if exists('b:current_syntax') finish @@ -11,7 +12,7 @@ syn match jjAdded "A .*" contained syn match jjRemoved "D .*" contained syn match jjChanged "M .*" contained -syn region jjComment start="^JJ: " end="$" contains=jjAdded,jjRemoved,jjChanged +syn region jjComment start="^JJ:" end="$" contains=jjAdded,jjRemoved,jjChanged syn include @jjCommitDiff syntax/diff.vim syn region jjCommitDiff start=/\%(^diff --\%(git\|cc\|combined\) \)\@=/ end=/^\%(diff --\|$\|@@\@!\|[^[:alnum:]\ +-]\S\@!\)\@=/ fold contains=@jjCommitDiff -- -- 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 vim_dev+unsubscr...@googlegroups.com. To view this discussion visit https://groups.google.com/d/msgid/vim_dev/E1u5USx-0090Oi-TC%40256bit.org.