]> git.ipfire.org Git - thirdparty/vim.git/commit
runtime(comment): handle special chars ^$[ robustly
authorMaxim Kim <habamax@gmail.com>
Fri, 13 Jun 2025 18:18:50 +0000 (20:18 +0200)
committerChristian Brabandt <cb@256bit.org>
Fri, 13 Jun 2025 18:18:50 +0000 (20:18 +0200)
commitaef2e53cf8f331a0566857ac80a89a67e0d77722
tree4d127352ff4e356a1c679d1b1809792f57759339
parent1ded411a41a7b2d3bd4bc01f499db4a5aa5b0bc2
runtime(comment): handle special chars ^$[ robustly

Make sure comment toggling works when 'commentstring' contains
any of the following regex special characters by escaping them:

^ $ [

closes: #17537

Signed-off-by: Maxim Kim <habamax@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
runtime/pack/dist/opt/comment/autoload/comment.vim