aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nimterop/ast.nim2
-rw-r--r--nimterop/ast2.nim7
2 files changed, 8 insertions, 1 deletions
diff --git a/nimterop/ast.nim b/nimterop/ast.nim
index 96116c7..78501fd 100644
--- a/nimterop/ast.nim
+++ b/nimterop/ast.nim
@@ -238,6 +238,8 @@ proc printNim*(gState: State) =
if gState.procStr.nBl:
gecho &"{gState.procStr}\n"
+ gecho "{.pop.}"
+
if gState.debug:
if gState.debugStr.nBl:
gecho gState.debugStr
diff --git a/nimterop/ast2.nim b/nimterop/ast2.nim
index b604f1b..759ddfd 100644
--- a/nimterop/ast2.nim
+++ b/nimterop/ast2.nim
@@ -1815,7 +1815,10 @@ proc setupPragmas(gState: State, root: TSNode, fullpath: string) =
proc initNim*(gState: State) =
# Initialize for parseNim() one time
- gecho "import nimterop/types\n"
+ gecho """import nimterop/types
+
+{.push hint[ConvFromXtoItselfNotNeeded]: off.}
+"""
# Track identifiers already rendered and corresponding PNodes
gState.identifiers = newTable[string, string]()
@@ -1867,3 +1870,5 @@ proc printNim*(gState: State) =
tree.add gState.procSection
gecho tree.renderTree()
+
+ gecho "{.pop.}" \ No newline at end of file