Home Download Buy Blog Forum Support

tmLanguage - Variable in a string

tmLanguage - Variable in a string

Postby highend on Tue Jan 29, 2013 6:40 am

Hi,

is it possible to display variables inside a string with a different color?

Code: Select all
      <dict>
         <key>name</key>
         <string>string</string>
         <key>match</key>
         <string>["'].*?["']</string>
      </dict>

      <dict>
         <key>name</key>
         <string>variable.parameter</string>
         <key>match</key>
         <string>\$[A-Za-z_][A-Za-z0-9_]*</string>
      </dict>


Atm it looks like:
$test = "$drive:\$folder";

And I'd want it to look like:
$test = "$drive:\$folder";

=> Variables in strings should have a precedence over the string color itself.

Is that possible?
highend
 
Posts: 80
Joined: Fri Jan 20, 2012 2:47 pm

Return to Technical Support

Who is online

Users browsing this forum: topeju and 13 guests