In Stata, strings can begin with the two characters: `", end with the characters: "'. How can textmate recognise these as quotation marks? The following code in the Stata bundle won't work, because textmate doesn't parse the 'begin' and 'end' lines as I'd like it to. Instead it (understandably) complains that it finds a " where there should be a ; on the second line below. Is there some way to get textmate to recognise this quotation convention?
{ name = 'string.quoted.single.stata'; begin = "`""; end = ""'"; patterns = ( { name = 'constant.character.escaped.untitled'; match = '\.'; }, ); },
Any help much appreciated.
On Mar 26, 2010, at 4:31 PM, Jacob wrote:
Is there some way to get textmate to recognise this quotation convention?
begin = "`"";
Maybe this is too obvious and you’ve already tried it, but what about this?
begin = "`"";
Rob McBroom <mailinglist0@...> writes:
On Mar 26, 2010, at 4:31 PM, Jacob wrote:
Is there some way to get textmate to recognise this quotation convention?
begin = "`"";
Maybe this is too obvious and you’ve already tried it, but what about this?
begin = "`\"";
I've tried
begin = "`""; end = "'"";
but when I hit test in the bundle editor, this reverts to
begin = '`"'; end = '''"';
which doesn't work...
On Mar 31, 2010, at 12:17 PM, jacob wrote:
but when I hit test in the bundle editor, this reverts to
begin = '`"'; end = '''"';
which doesn't work...
OK, what about this?
begin = '`"'; end = ''"';
Rob McBroom <mailinglist0@...> writes:
On Mar 31, 2010, at 12:17 PM, jacob wrote:
but when I hit test in the bundle editor, this reverts to
begin = '`"'; end = '''"';
which doesn't work...
OK, what about this?
begin = '`"'; end = '\'"';
That gives an 'Error parsing language grammar' error: "expecting """, found 'EOF' ". There's got to be some way to do this...
On 31 Mar 2010, at 18:17, jacob wrote:
I've tried
begin = "`""; end = "'"";
but when I hit test in the bundle editor, this reverts to
begin = '`"'; end = '''"';
which doesn't work...
The rewritten form is identical to the input form.
If it doesn’t match `"…'" then there probably is another problem with the grammar. Try pastie all of it.