[TxMt] strange behaviour with linefeeds/spaces/carriage returns

Michael Sheets mummer at whitefalls.org
Mon Nov 20 15:07:45 UTC 2006


> I had this hideous bug in on of my rjs templates. The bug was in  
> this line:
>
> page[:login].visual_effect
> :blind_down
>
> now, most of you (who know rjs) will think that's a perfectly good  
> line. However, there is a bug in it. That line gets converted to  
> this javascript:

The real solution would be to highlight that as an invalid.illegal  
space in the grammar file when it's in that position (Only allow  
spaces) But might be pretty hard to do depending on how the grammar  
is laid out and the syntax and such. (Which I don't know for JS)



More information about the textmate mailing list