Skip to content
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

[feature request] regex pattern in keywords #88

Closed
theGiallo opened this issue Apr 11, 2018 · 4 comments
Closed

[feature request] regex pattern in keywords #88

theGiallo opened this issue Apr 11, 2018 · 4 comments

Comments

@theGiallo
Copy link

theGiallo commented Apr 11, 2018

I would really powerful to have regex not only in a single string but on every keyword. E.g. I use NOTE(username): stuff or TODO(username,date): stuff.

@theGiallo theGiallo changed the title regex pattern in keywords [feature request] regex pattern in keywords Apr 11, 2018
@wayou
Copy link
Owner

wayou commented Apr 20, 2018

multiple regex make the extension much more complex, witch I think it's already been complex than the original purpose when I made this extension :(.
however, you request can do be met with the working one option todohighlight.keywordsPattern.

@theGiallo
Copy link
Author

If I'm not mistaken that option gets me a single color. I'd like many colors.

A problem I have with the keywords is that they are not matched as "whole word". E.g. "NOTE" is matched in "NOTEPAD".

@wayou wayou closed this as completed in e81d087 Jul 21, 2018
@adamreisnz
Copy link

@wayou Is this still supported, or has it since been removed? I can't seem to make it work using the examples in that commit. Using "pattern" doesn't seem to work. I need to be able to specify a boundary for individual keywords. Using a single keywordsPattern is not suitable.

image

This doesn't work.

@wayou
Copy link
Owner

wayou commented Feb 7, 2021

@wayou Is this still supported, or has it since been removed? I can't seem to make it work using the examples in that commit. Using "pattern" doesn't seem to work. I need to be able to specify a boundary for individual keywords. Using a single keywordsPattern is not suitable.

@adamreisnz I'm afraid the \b won't work, see #50 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants