A Ruby .rb file with the following:
puts "Strategy Default for #{base}"
displays puts in white and the whole string in yellow (default theme). If I use fx “#{123}” the numbers are displayed/syntax highlighted in purple.
How can I get it to work with alphanumeric chars inside the interpolation?
I looked at the Falcon mode:
<string>string.quoted.double.falcon</string>
<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>\\.</string>
<key>name</key>
<string>constant.character.escape.falcon</string>
</dict>
<dict>
<key>match</key>
<string>\$\(.*?\)</string>
<key>name</key>
<string>string.interpolated.falcon</string>
</dict>
<dict>
<key>match</key>
<string>\$[a-zA-Z_0-9]+</string>
<key>name</key>
<string>string.interpolated.falcon</string>
</dict>
</array>
It should be similar for Ruby, except using #{…} as delimiters. I tried looking at the Ruy.tmlLanguage so far haven’t figured out how to do it here… Anyone? Thanks!