fabiospampinato / vscode-highlight

Advanced text highlighter based on regexes. Useful for todos, annotations etc.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

feature request: setting for regex to not work inside comments

TamirCode opened this issue · comments

Since vscode has textmate scope to determine whether anything is a comment or not in any language, I think you should add a setting for a regex to not activate inside comments, would be very useful.

When I say setting I mean exactly like the "filterLanguageRegex": setting, which is local to regex and not a general setting

I don't think one can retrieve ranges of textmate scopes programmatically.

Happy to reopen if pointed at the API that can do that.