|
From: <caw...@us...> - 2007-08-09 16:31:05
|
Revision: 2956
http://rubyeclipse.svn.sourceforge.net/rubyeclipse/?rev=2956&view=rev
Author: cawilliams
Date: 2007-08-09 09:30:53 -0700 (Thu, 09 Aug 2007)
Log Message:
-----------
fix #5508 - Typing apostrophe in comment shouldn't auto-create a second apostrophe
Modified Paths:
--------------
trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/rubyeditor/RubyEditor.java
Modified: trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/rubyeditor/RubyEditor.java
===================================================================
--- trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/rubyeditor/RubyEditor.java 2007-08-09 14:47:16 UTC (rev 2955)
+++ trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/rubyeditor/RubyEditor.java 2007-08-09 16:30:53 UTC (rev 2956)
@@ -1195,8 +1195,8 @@
case '\'':
case '"':
if (!fCloseStrings || nextToken == Symbols.TokenIDENT
- || prevToken == Symbols.TokenIDENT || next != null && next.length() > 1
- || previous != null && previous.length() > 1) return;
+ /*|| prevToken == Symbols.TokenIDENT */ || next != null && next.length() > 1
+ /*|| previous != null && previous.length() > 1*/) return;
break;
default:
@@ -1204,7 +1204,7 @@
}
ITypedRegion partition = TextUtilities.getPartition(document,
- IRubyPartitions.RUBY_PARTITIONING, offset, true);
+ IRubyPartitions.RUBY_PARTITIONING, offset - 1, true);
if (!IDocument.DEFAULT_CONTENT_TYPE.equals(partition.getType())) return;
if (!validateEditorInputState()) return;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|