IBM-Cloud / vscode-log-output-colorizer

Language extension for VSCode that adds syntax colorization for both the output/debug/extensions panel and *.log files.
https://marketplace.visualstudio.com/items?itemName=IBM.output-colorizer
MIT License
111 stars 28 forks source link

Spaces can break colorization #14

Closed cfjedimaster closed 7 years ago

cfjedimaster commented 7 years ago

Check out how the color 'breaks' at the space in "My Space":

image

I'm assuming that's not supposed to happen?

triceam commented 7 years ago

This is a tough one to fix. How do you tell the difference between spaces in a regular sentence that contains an email address? Unfortunately I'm not sure the general purpose nature of this extension can fix that particular use case.

cfjedimaster commented 7 years ago

Based on what you told me (that it has to be a regex, and not 'logic'), I agree this would be too difficult to fix. Close if you want. :)

triceam commented 7 years ago

Yup, it's all based on general purpose regex. I don't think there is much I can do for this one without breaking a lot of other things or making it extremely complicated (and probably fragile). I will see if I can improve regex in general.