Fix #22 - print parse errors as comments

This commit is contained in:
Ganesh Viswanathan 2018-11-28 22:21:34 -06:00
commit b1c5407ff3

View file

@ -239,7 +239,7 @@ proc genNimAst(root: TSNode) =
case $node.tsNodeType():
of "ERROR":
let (line, col) = getLineCol(node)
echo &"Potentially invalid syntax at line {line} column {col}"
echo &"# Potentially invalid syntax at line {line} column {col}"
of "preproc_def":
pPreprocDef(node)
of "type_definition":