From b1c5407ff3fbf79c8d9318b789c9f4a638e43f83 Mon Sep 17 00:00:00 2001 From: Ganesh Viswanathan Date: Wed, 28 Nov 2018 22:21:34 -0600 Subject: Fix #22 - print parse errors as comments --- nimterop/ast.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nimterop/ast.nim b/nimterop/ast.nim index fe0111f..4d20482 100644 --- a/nimterop/ast.nim +++ b/nimterop/ast.nim @@ -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": -- cgit v1.2.3