changeset 711:217b047afd93

fix line numbers
author Franklin Schmidt <fschmidt@gmail.com>
date Thu, 19 May 2016 15:47:48 -0600
parents 63cda9eec9a0
children 20051fe2a943
files core/src/luan/impl/LuanParser.java
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
diff -r 63cda9eec9a0 -r 217b047afd93 core/src/luan/impl/LuanParser.java
--- 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() )