Fix #22 - print parse errors as comments
This commit is contained in:
parent
c9b57c567c
commit
b1c5407ff3
1 changed files with 1 additions and 1 deletions
|
|
@ -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":
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue