enyancc / vscode-ext-color-highlight

Extension adds colored border around css/web colors in the editor
GNU General Public License v3.0
262 stars 83 forks source link

matchRgbWithNoFunction matching unclosured values #157

Open RodrigoNovais opened 2 years ago

RodrigoNovais commented 2 years ago

"color-highlight.matchRgbWithNoFunction" rule matches agains numeric sequencials without any standard It would be more valuable if restricted to enclosured sequences as arrays with 3 numeric values instead of any 3 numerics values inside an array

image

ferretwithaberet commented 2 years ago

It only searches for 3 numbers separated by commas at the moment, that's why it acts like that. There are formats where you need to use:

property=255,255,255

that's why it does not match enclosured sequences, this could be added as a setting though.