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(): case $node.tsNodeType():
of "ERROR": of "ERROR":
let (line, col) = getLineCol(node) 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": of "preproc_def":
pPreprocDef(node) pPreprocDef(node)
of "type_definition": of "type_definition":