|
From: <caw...@us...> - 2007-07-24 14:54:20
|
Revision: 2827
http://svn.sourceforge.net/rubyeclipse/?rev=2827&view=rev
Author: cawilliams
Date: 2007-07-24 07:53:57 -0700 (Tue, 24 Jul 2007)
Log Message:
-----------
fix #5259 - add test and make formatter match indentation that editor uses for case/when statements. Indent the whens!
Modified Paths:
--------------
trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/formatter/OldCodeFormatter.java
Modified: trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/formatter/OldCodeFormatter.java
===================================================================
--- trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/formatter/OldCodeFormatter.java 2007-07-24 14:50:32 UTC (rev 2826)
+++ trunk/org.rubypeople.rdt.core/src/org/rubypeople/rdt/internal/formatter/OldCodeFormatter.java 2007-07-24 14:53:57 UTC (rev 2827)
@@ -16,7 +16,7 @@
public class OldCodeFormatter extends CodeFormatter {
private final static String BLOCK_BEGIN_RE = "(class|module|def|if|unless|case|while|until|for|begin|do)";
- private final static String BLOCK_MID_RE = "(else|elsif|when|rescue|ensure)";
+ private final static String BLOCK_MID_RE = "(else|elsif|rescue|ensure)";
private final static String BLOCK_END_RE = "(end)";
private final static String DELIMITER_RE = "[?$/(){}#\\`.:\\]\\[]";
private final static String[] LITERAL_BEGIN_LITERALS = { "\"", "'", "=begin", "%[Qqrxw]?.",
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|