|
From: <caw...@us...> - 2007-05-16 00:48:54
|
Revision: 2485
http://svn.sourceforge.net/rubyeclipse/?rev=2485&view=rev
Author: cawilliams
Date: 2007-05-15 17:48:52 -0700 (Tue, 15 May 2007)
Log Message:
-----------
ignore syntax exceptions
Modified Paths:
--------------
trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/hyperlinks/RubyHyperLinkDetector.java
Modified: trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/hyperlinks/RubyHyperLinkDetector.java
===================================================================
--- trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/hyperlinks/RubyHyperLinkDetector.java 2007-05-16 00:24:04 UTC (rev 2484)
+++ trunk/org.rubypeople.rdt.ui/src/org/rubypeople/rdt/internal/ui/text/hyperlinks/RubyHyperLinkDetector.java 2007-05-16 00:48:52 UTC (rev 2485)
@@ -16,6 +16,7 @@
import org.eclipse.jface.text.hyperlink.IHyperlinkDetector;
import org.eclipse.ui.IEditorInput;
import org.jruby.ast.Node;
+import org.jruby.lexer.yacc.SyntaxException;
import org.rubypeople.rdt.core.IRubyScript;
import org.rubypeople.rdt.core.RubyModelException;
import org.rubypeople.rdt.internal.codeassist.SelectionEngine;
@@ -99,6 +100,8 @@
return new IHyperlink[] { link };
}
}
+ } catch (SyntaxException se) {
+ // ignore
} catch (RubyModelException e) {
//ignore
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|