Mercurial Hosting > luan
comparison 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 |
comparison
equal
deleted
inserted
replaced
710:63cda9eec9a0 | 711:217b047afd93 |
---|---|
1683 int start = parser.currentIndex(); | 1683 int start = parser.currentIndex(); |
1684 while( parser.match('=') ); | 1684 while( parser.match('=') ); |
1685 int nEquals = parser.currentIndex() - start; | 1685 int nEquals = parser.currentIndex() - start; |
1686 if( !parser.match('[') ) | 1686 if( !parser.match('[') ) |
1687 return parser.failure(null); | 1687 return parser.failure(null); |
1688 MatchEndOfLine(); | 1688 if( EndOfLine() ) |
1689 parser.upSb(); | |
1689 start = parser.currentIndex(); | 1690 start = parser.currentIndex(); |
1690 while( !LongBracketsEnd(nEquals) ) { | 1691 while( !LongBracketsEnd(nEquals) ) { |
1691 if( !parser.anyChar() ) | 1692 if( !parser.anyChar() ) |
1692 throw parser.exception("Unclosed long string"); | 1693 throw parser.exception("Unclosed long string"); |
1693 } | 1694 } |