From: Jeremy Henty Date: 2006-11-30T20:40:17+09:00 Subject: Re: BUG: ruby-mode.el : '/=' operator breaks following indentation On 2006-11-30, George Ogata wrote: > The issue is probably that it's treating the "/=" as the beginning > of a multiline regexp. A common fix for these sorts of "mistaken > delimiters" is to put a comment at the end of the line containing a > closing delimiter: > > def foo > x /= y #/ > bar > end Thanks, that works. A slightly better fix is to add a ';' as well to convince the major mode that the statement has ended, otherwise it adds extra indentation to the next line. def foo x /= y # / ; bar end I wonder how the Ruby parser decides that /= is an operator and not the start of a regexp? Regards, Jeremy Henty