-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
highlight TODO, FIXME and XXX in comments #1164
Comments
The PR to nvim-treesitter for supporting this same feature (nvim-treesitter/nvim-treesitter#893) and |
I tried taking a look at this since I thought it was easy. It works for some languages (scq, python) but didn't work for rust. But it only selects until the first word so you get a weird highlight. I believe it requires some changes in helix-core syntax to allow the use of injection as an overlay so that the original parts are still highlighted with comment as a fallback, currently it seemed to only highlight the first word as comment which is the matched regex for tree-sitter-comment. |
This is not quite the same. In |
I think it's only useful in comments, what is your use case? |
Same same (have a look at my screenshot). I was just saying in (n)vim it's only "FIXME" not "FIXME:" nor "FIXME(user):". |
TIL, thanks |
* Add tree-sitter-comment Fix #1164 * fix precedence in tree-sitter-comment highlights connects #1170 * set injection-regex for comment language * remove comment filetype * fix comment injections for neovim-style injections tags * add comment injections for elixir * remove f.comment * fix spacing in .gitmodules * run 'cargo xtask docgen' Co-authored-by: Ivan Tham <[email protected]>
Thanks all ! |
(n)vim
highlights these keywords in comments: TODO, FIXME and XXX. It's quite useful for spotting places to work on in source code.The text was updated successfully, but these errors were encountered: