Revision: 1778
          http://svn.sourceforge.net/vexi/?rev=1778&view=rev
Author:   mkpg2
Date:     2007-04-01 22:54:39 -0700 (Sun, 01 Apr 2007)

Log Message:
-----------
Fix. Treat '\r' as white space (so dos style line ended files can be parsed)

Modified Paths:
--------------
    core/trunk/org.ibex.js/src/org/ibex/js/Lexer.jpp

Modified: core/trunk/org.ibex.js/src/org/ibex/js/Lexer.jpp
===================================================================
--- core/trunk/org.ibex.js/src/org/ibex/js/Lexer.jpp    2007-04-02 05:38:54 UTC 
(rev 1777)
+++ core/trunk/org.ibex.js/src/org/ibex/js/Lexer.jpp    2007-04-02 05:54:39 UTC 
(rev 1778)
@@ -255,7 +255,7 @@
 
     private int _getToken() throws IOException {
         int c;
-        do { c = in.read(); } while (c == '\u0020' || c == '\u0009' || c == 
'\u000C' || c == '\u000B' || c == '\n' );
+        do { c = in.read(); } while (c == '\u0020' || c == '\u0009' || c == 
'\u000C' || c == '\u000B' || c == '\n' || c == '\r');
         if (c == -1) return -1;
         if (c == '\\' || Character.isJavaIdentifierStart((char)c)) return 
getIdentifier(c);
         if (isDigit(c) || (c == '.' && isDigit(in.peek()))) return 
getNumber(c);


This was sent by the SourceForge.net collaborative development platform, the 
world's largest Open Source development site.

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Vexi-svn mailing list
Vexi-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vexi-svn

Reply via email to