|
From: <caw...@us...> - 2007-07-20 13:51:59
|
Revision: 2805
http://svn.sourceforge.net/rubyeclipse/?rev=2805&view=rev
Author: cawilliams
Date: 2007-07-20 06:51:57 -0700 (Fri, 20 Jul 2007)
Log Message:
-----------
add test and fix for #5254 - Syntax highlighting incorrect in supplied snippet
Modified Paths:
--------------
trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/RubyPartitionScanner.java
Modified: trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/RubyPartitionScanner.java
===================================================================
--- trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/RubyPartitionScanner.java 2007-07-19 19:56:35 UTC (rev 2804)
+++ trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/RubyPartitionScanner.java 2007-07-20 13:51:57 UTC (rev 2805)
@@ -255,7 +255,7 @@
}
private void scanTokensInsideDynamicPortion() {
- String possible = new String(fContents.substring(fOffset - origOffset));
+ String possible = new String(fContents.substring(fOffset - origOffset));
int end = findEnd(possible);
if (end != -1) {
possible = possible.substring(0, end);
@@ -417,7 +417,7 @@
setPartialRange(document, offset, length, null, -1);
}
- private static class EndBraceFinder {
+ public static class EndBraceFinder {
private String input;
private List<String> stack;
@@ -431,6 +431,7 @@
char c = input.charAt(i);
switch (c) {
case '\\':
+ case '$':
// skip next character
i++;
break;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|