[TxMt] Re: Python bundle syntax highlighting bug

Jacob Rus jacobolus at gmail.com
Mon Aug 13 04:22:34 UTC 2007


Alex Ross wrote:
> We have the grammar set to treat "raw" strings as a regular expression.  
> They were introduced to the python language specifically to make writing 
> regular expressions easier, so this seems logical.
> 
> Anyway, the grammar thinks that you're LaTeX code is a regular 
> expression.  My suggestion would be to remove the "r" from before your 
> doc-string.  Is there a particular reason you are using them?

I'm more and more convinced as time goes on that we should just stop 
trying to interpret raw strings as regexps.

-Jacob




More information about the textmate mailing list