I'm trying to create a bundle for RealBasic. I've made some progress, but I keep getting stumped in trying to create a single line comment, (which in RealBasic is either // or ' The double-forward slash works fine, but the single quote doesn't.
This is the code:
{ name = 'comment.line.single-quote.myRB'; match = "(').*$\n?"; captures = { 1 = { name = 'punctuation.definition.comment.myRB'; }; }; },
Thanks,
mvreade
Check out the asp & asp.net bundles. A lot of it is just VBS stuff and can be adapted to RealBasic. I did a lot of work on those two back when I was cursed to work in VBScript *shudder*
On Oct 3, 2007, at 8:10 AM, michael@sacisolutions.com wrote:
I'm trying to create a bundle for RealBasic. I've made some progress, but I keep getting stumped in trying to create a single line comment, (which in RealBasic is either // or ' The double-forward slash works fine, but the single quote doesn't.
This is the code:
{ name = 'comment.line.single-quote.myRB'; match = "(').*$\n?"; captures = { 1 = { name = 'punctuation.definition.comment.myRB'; }; }; },
Thanks,
mvreade
—Thomas Aylott – subtleGradient—
On 03/10/2007, at 14:10, michael@sacisolutions.com wrote:
[...] The double-forward slash works fine, but the single quote doesn't.
In TM’s language grammars, '…' strings support no escape characters at all (but '' gives a ') and "…" strings support " and \, but nothing else.
The rules with some examples are here: http://macromates.com/textmate/manual/appendix#strings
So to match a single ' you’d either use: “match = "'";” or “match = '''';”.