diff core/src/luan/impl/LuanParser.java @ 711:217b047afd93

fix line numbers
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 19 May 2016 15:47:48 -0600
parents 77e0c859c8a3
children 7a322e942c15
line wrap: on
line diff
--- a/core/src/luan/impl/LuanParser.java	Thu May 19 15:21:44 2016 -0600
+++ b/core/src/luan/impl/LuanParser.java	Thu May 19 15:47:48 2016 -0600
@@ -1685,7 +1685,8 @@
 		int nEquals = parser.currentIndex() - start;
 		if( !parser.match('[') )
 			return parser.failure(null);
-		MatchEndOfLine();
+		if( EndOfLine() )
+			parser.upSb();
 		start = parser.currentIndex();
 		while( !LongBracketsEnd(nEquals) ) {
 			if( !parser.anyChar() )