[jboss-svn-commits] JBL Code SVN: r8424 - labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang
jboss-svn-commits at lists.jboss.org
jboss-svn-commits at lists.jboss.org
Tue Dec 19 18:56:09 EST 2006
Author: tirelli
Date: 2006-12-19 18:56:05 -0500 (Tue, 19 Dec 2006)
New Revision: 8424
Modified:
labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java
labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
Log:
Fixing new line problem in consequence
Modified: labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java 2006-12-19 21:00:52 UTC (rev 8423)
+++ labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/DRLLexer.java 2006-12-19 23:56:05 UTC (rev 8424)
@@ -1,4 +1,4 @@
-// $ANTLR 3.0b5 D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g 2006-12-19 16:02:44
+// $ANTLR 3.0b5 D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g 2006-12-19 21:53:44
package org.drools.lang;
Modified: labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/DRLParser.java
===================================================================
--- labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/DRLParser.java 2006-12-19 21:00:52 UTC (rev 8423)
+++ labs/jbossrules/trunk/drools-compiler/src/main/java/org/drools/lang/DRLParser.java 2006-12-19 23:56:05 UTC (rev 8424)
@@ -1,4 +1,4 @@
-// $ANTLR 3.0b5 D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g 2006-12-19 16:02:44
+// $ANTLR 3.0b5 D:\\workspace\\jboss\\jbossrules\\drools-compiler\\src\\main\\resources\\org\\drools\\lang\\DRL.g 2006-12-19 21:53:43
package org.drools.lang;
import java.util.List;
@@ -4681,9 +4681,9 @@
while( (index < buf.length() ) && Character.isWhitespace( buf.charAt( index ) ) &&
(buf.charAt( index ) != 10 ) && (buf.charAt( index ) != 13 ))
index++;
- if( (index < buf.length() ) && ( buf.charAt( index ) == 10 ) )
+ if( (index < buf.length() ) && ( buf.charAt( index ) == '\r' ) )
index++;
- if( (index < buf.length() ) && ( buf.charAt( index ) == 13 ) )
+ if( (index < buf.length() ) && ( buf.charAt( index ) == '\n' ) )
index++;
rule.setConsequence( buf.substring( index ) );
More information about the jboss-svn-commits
mailing list