[jboss-svn-commits] JBL Code SVN: r19987 - labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/editors/outline.
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Sat May 17 12:13:38 EDT 2008
Author: KrisVerlaenen
Date: 2008-05-17 12:13:38 -0400 (Sat, 17 May 2008)
New Revision: 19987
Modified:
labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/editors/outline/RuleContentOutlinePage.java
Log:
JBRULES-1601: Eclipse outline problem in DRL editor
- fixed by making function pattern reluctant instead of greedy
Modified: labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/editors/outline/RuleContentOutlinePage.java
===================================================================
--- labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/editors/outline/RuleContentOutlinePage.java 2008-05-17 15:26:53 UTC (rev 19986)
+++ labs/jbossrules/trunk/drools-eclipse/drools-eclipse-plugin/src/main/java/org/drools/eclipse/editors/outline/RuleContentOutlinePage.java 2008-05-17 16:13:38 UTC (rev 19987)
@@ -56,7 +56,7 @@
"\\s*package\\s+([^\\s;#]+);?", Pattern.DOTALL);
private static final Pattern FUNCTION_PATTERN = Pattern.compile(
- "\\n\\s*function\\s+(\\S+)\\s+(\\S+)\\(.*\\)", Pattern.DOTALL);
+ "\\n\\s*function\\s+(\\S+)\\s+(\\S+)\\(.*?\\)", Pattern.DOTALL);
private static final Pattern TEMPLATE_PATTERN = Pattern.compile(
"\\n\\s*template\\s+([^\\s;#\"]+)", Pattern.DOTALL);
More information about the jboss-svn-commits
mailing list