Files
neovim/test/functional/lua
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-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-24 21:43:46 -05:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00
2024-04-23 18:17:04 +02:00