enyancc / vscode-ext-color-highlight

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

Update rgbWithoutFunction to highlight in XML files #215

Open clarinetJWD opened 1 month ago

clarinetJWD commented 1 month ago

Currently, colors in XML like <color>123, 234, 12</color> don't highlight. This change enables highlighting in XML files where the color string ends with a <

It also changes the "end" string to not highlight the trailing space or semicolon.

clarinetJWD commented 1 month ago

Added |\r to the regex string to detect the first lines in situations like:

123, 124, 125
111, 222, 333