[TxMt] Single Quote as Comment

Allan Odgaard throw-away-1 at macromates.com
Thu Oct 4 05:54:56 UTC 2007


On 03/10/2007, at 14:10, michael at 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 =  
'''';”.





More information about the textmate mailing list