[TextMate] Syntax coloring and "/"

Jim Menard jimm at io.com
Thu Oct 7 15:45:00 UTC 2004


Gavin Kistner wrote:
> On Oct 7, 2004, at 5:57 AM, Jim Menard wrote:
> 
>>When editing Ruby code, everything after the first "/" in code turns 
>>yellow. For example, in the code
>>
>>class Foo
>>	def bletch(num)
>>		@foo = num / 12
>>	end
>>end
>>
>>everything from the "/" to the end of the file is yellow.
> 
> 
> Looks to me like it thinks it's a regexp literal.
> 
> Probably changing the syntax coloring for regexp literals to require a 
> non-space after them would do it.

Nope. The following could wouldn't work:

	foo =~ / space_at_front/

Jim
-- 
Jim Menard, jimm at io.com, http://www.io.com/~jimm




More information about the textmate mailing list