Mercurial Hosting > luan
comparison src/luan/interp/LuanParser.java @ 120:8d7730a5e3b4
move standalone logic from Java to Luan
git-svn-id: https://luan-java.googlecode.com/svn/trunk@121 21e917c8-12df-6dd8-5cb6-c86387c605b9
author | fschmidt@gmail.com <fschmidt@gmail.com@21e917c8-12df-6dd8-5cb6-c86387c605b9> |
---|---|
date | Mon, 02 Jun 2014 04:43:45 +0000 |
parents | 735708619119 |
children | f537ff5e511d |
comparison
equal
deleted
inserted
replaced
119:f1bf2890d80f | 120:8d7730a5e3b4 |
---|---|
1208 int start = parser.currentIndex(); | 1208 int start = parser.currentIndex(); |
1209 while( parser.match('=') ); | 1209 while( parser.match('=') ); |
1210 int nEquals = parser.currentIndex() - start; | 1210 int nEquals = parser.currentIndex() - start; |
1211 if( !parser.match('[') ) | 1211 if( !parser.match('[') ) |
1212 return parser.failure(null); | 1212 return parser.failure(null); |
1213 EndOfLine(); | |
1213 start = parser.currentIndex(); | 1214 start = parser.currentIndex(); |
1214 while( !LongBracketsEnd(nEquals) ) { | 1215 while( !LongBracketsEnd(nEquals) ) { |
1215 if( !parser.anyChar() ) | 1216 if( !parser.anyChar() ) |
1216 throw parser.exception("Unclosed long string"); | 1217 throw parser.exception("Unclosed long string"); |
1217 } | 1218 } |