[TextMate] Syntax coloring and "/"

Gavin Kistner gavin at refinery.com
Thu Oct 7 12:56:24 UTC 2004


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.




More information about the textmate mailing list