Sublime Forum

Highlights confusion with " text text ... $"

#1

Hi all,

please advice me what and how to change highlights plugin file to fix issue described below.
Example is for PERL highlight.

simple code where is only this:

text = "text text ... $"; another code

highlight colored second line with the same color like it should belongs between quotes.
It is due to dollar ($) before closing quote.

0 Likes

#2

:bulb:

in Perl.tmLanguage change in “string.quoted.double.perl” as below:

<string>string.quoted.double.perl</string> <key>patterns</key> <array> <!-- <dict> <key>include</key> <string>#escaped_char</string> </dict> <dict> <key>include</key> <string>#variable</string> </dict> --> <dict> <key>match</key> <string>\\(x\h{2}|[0-2][0-7]{,2}|3[0-6][0-7]|37[0-7]?|[4-7][0-7]?|.)</string> <key>name</key> <string>constant.character.escape.js</string> </dict> </array>
It works :smiley:

0 Likes