Open tpeixinho opened 3 months ago
I got the solution from: https://github.com/mattslay/Sublime-Text-2-Syntax-Coloring-for-Visual-FoxPro/blob/master/Visual%20Foxpro.tmLanguage
maybe you can incorporate other things too.
even better solution for both double and single quotes:
<dict>
<key>match</key>
<string>(["'])(?:(?=(\\?))\2.)*?\1</string>
<key>name</key>
<string>string.foxpro</string>
</dict>
<dict>
<key>match</key>
<string>(\[)(.*)(\])</string>
<key>name</key>
<string>string.foxpro</string>
</dict>
Hi,
with this code: && xxx ** ccccc wait window "str('', '"')" wait window 'str("", "'")' for i=1 to 10 msg("ola") next
you can see that it breaks coloring because of ' inside "
you can fix this with these changes in FoxPro.plist: