You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using the extension to highlight citation commands in latex. But these commands don't need to be highlighted if inside a comment. This is doable using regex but it would be nice if there was a option for it.
The text was updated successfully, but these errors were encountered:
I think you're suggesting being able to set this per highlight, right?
Either way, it's challenging, as it would then need to know the syntax for all single- and multi-line comments in different file types.
Giving some regex examples for different languages feels like a much easier option.
Or am I missing something?
Yes I was thinking per highlight.
To be honest I don't really know about the back end of the extension but generally the textmate scope for a comment starts with "comment.line." or "comment.block.". But if this isn't accessible then I imagine it would be far more difficult that it is worth to implement.
Edit: Python block comments start with "string.quoted.docstring."
I'm using the extension to highlight citation commands in latex. But these commands don't need to be highlighted if inside a comment. This is doable using regex but it would be nice if there was a option for it.
The text was updated successfully, but these errors were encountered: