minor lexer cleanups; fixes #2504

This commit is contained in:
Araq 2015-04-10 12:24:45 +02:00
commit 10c1d7f519
3 changed files with 10 additions and 20 deletions

View file

@ -2031,8 +2031,8 @@ proc parseString*(s: string; filename: string = ""; line: int = 0;
var parser: TParser
# XXX for now the builtin 'parseStmt/Expr' functions do not know about strong
# spaces...
openParser(parser, filename, stream, false)
parser.lex.errorHandler = errorHandler
openParser(parser, filename, stream, false)
result = parser.parseAll
closeParser(parser)