Open AllergicMushroom opened 6 days ago
Duplicate of #213
My apologies for the duplicate.
As I understand, a solution has been proposed consisting of replacing the special characters with a certain string. Are there any plans to implement it or some obstacle impeding it ?
Did you check docs and existing issues?
Neovim version (nvim -v)
NVIM v0.10.1
Operating system/version
Artix Linux OpenRC 6.11
Describe the bug
I have found no way to make todo-comments recognize keywords starting by '@', e.g., '@todo', '@note', ...
Furthermore, putting a '@' character in the alternative keywords breaks the entire plugin, making it not recognize any other label, even if there is no '@' in its alternatives. For clarity, consider '@todo' as the only alt for TODO and 'bug' the only alt for FIX. Neither '@todo' nor 'bug' are recognized anymore.
I have also tried changing the recognition pattern, by escaping and by not escaping the '@' character. In both cases, the plugin works correctly with the specified alternatives in keywords, but does not recognize the '@' character. For clarity, consider 'todo' the only alternative for TODO and consider '[[@\b(KEYWORDS)\b]]' the recognition pattern. Then, '@todo' is not recognized by the plugin.
As of now, I have not found any way to have the '@' character be recognized.
Steps To Reproduce
Add the '@' character in one of the alternatives keywords.
Expected Behavior
The '@' is considered as an alphanumerical value and comments starting with '@[KEYWORD]' are highlighted.
Repro