From: Le Wang (nospam) Date: 2002-01-01T11:43:50+09:00 Subject: [ruby-talk:29928] Re: ruby-mode.el indentation issue #2 On Mon, 31 Dec 2001 04:41:29 -0500, Le Wang wrote: >Hi all, Hi nobu, > > >puts "a", > "b", > "c #{var}", >"d" # tab here doesn't indent properly > > >The setup is ruby-mode.el 1.39 (fully patched) + XEmacs 21.4.6. > >The problem, I think is {} within double-quotes. > >Thanks. >-lw Here's another one: class Test def moveSeries (series, askIncomplete = true) dirName = "#{series.array[0][ 0..series.preIdIndex - 1]}#{series.array.first[series.preIdIndex..series.postIdIndex]}-#{series.array.last[series.preIdIndex..series.postIdIndex]}#{series.array[0][series.postIdIndex+1..-5]}" if missingPart = (SeriesGroup.notContinuous series) puts '*' * 70, series.array, '-' * 70, "preIdIndex: #{series.preIdIndex}", "integerOnly: #{series.integerOnly}", '-' * 70, "missing: #{C.warnMessage missingPart.inspect}" dirName << " - missing #{missingPart.inspect.gsub(/"/, "'")}" print "Move these files to #{C.emphasisMessage dirName}? (y/n)" if askIncomplete # press TAB here input = CharInput::getChar(/[yYnN]/) 'nN'.index (input) and return nil end end Dir.mkdir (dirName) series.array.each do |j| File.rename j, dirName + "/#{j}" end end end If you press tab on line 8, everything after that gets really screwed up, I can't even type anything and get "invalid nest" errors. I think the problem starts on line 6, because the font-lock colors start messing up there... Thanks. -lw