Files
neovim/runtime/lua/vim
github-actions[bot] 21b21b94e6 fix(comment): fall back to using trimmed comment markers (#28950)
fix(comment): fall back to using trimmed comment markers (#28938)

Problem: Currently comment detection, addition, and removal are done
  by matching 'commentstring' exactly. This has the downside when users
  want to add comment markers with space (like with `-- %s`
  commentstring) but also be able to uncomment lines that do not contain
  space (like `--aaa`).

Solution: Use the following approach:
  - Line is commented if it matches 'commentstring' with trimmed parts.
  - Adding comment is 100% relying on 'commentstring' parts (as is now).
  - Removing comment is first trying exact 'commentstring' parts with
    fallback on trying its trimmed parts.
(cherry picked from commit 0a2218f965)

Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com>
2024-05-23 16:02:13 -05:00
..
2024-05-16 14:29:56 +08:00
2024-05-15 23:19:26 +02:00
2024-03-06 10:45:22 +00:00
2024-04-26 15:13:06 +01:00
2024-05-16 17:37:46 +08:00
2024-01-16 09:33:10 +00:00
2024-05-15 07:18:33 +08:00
2024-05-15 12:38:26 +01:00
2024-01-19 11:54:04 +00:00
2024-05-15 07:18:33 +08:00
2024-03-16 19:26:10 +00:00
2024-03-16 19:26:10 +00:00
2024-05-15 23:19:26 +02:00
2024-04-30 07:04:42 +08:00
2024-03-16 19:26:10 +00:00
2024-03-09 11:21:55 +00:00