Suppress hint, import types in toast
This commit is contained in:
parent
424a4c831e
commit
b0eba35834
6 changed files with 10 additions and 7 deletions
|
|
@ -134,6 +134,9 @@ proc printNimHeader*() =
|
||||||
# $2 $3
|
# $2 $3
|
||||||
|
|
||||||
{.experimental: "codeReordering".}
|
{.experimental: "codeReordering".}
|
||||||
|
{.hint[ConvFromXtoItselfNotNeeded]: off.}
|
||||||
|
|
||||||
|
import nimterop/types
|
||||||
""" % [$now(), getAppFilename(), commandLineParams().join(" ")]
|
""" % [$now(), getAppFilename(), commandLineParams().join(" ")]
|
||||||
|
|
||||||
proc printNim*(fullpath: string, root: TSNode, astTable: AstTable) =
|
proc printNim*(fullpath: string, root: TSNode, astTable: AstTable) =
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@ import hashes, macros, os, strformat, strutils
|
||||||
|
|
||||||
const CIMPORT {.used.} = 1
|
const CIMPORT {.used.} = 1
|
||||||
|
|
||||||
import "." / [globals,types,paths]
|
import "." / [globals, types, paths]
|
||||||
export types
|
export types
|
||||||
|
|
||||||
proc interpPath(dir: string): string=
|
proc interpPath(dir: string): string=
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import os, strutils
|
import os, strutils
|
||||||
|
|
||||||
import "."/[git,paths]
|
import "."/[git, paths]
|
||||||
|
|
||||||
proc treesitterSetup*() =
|
proc treesitterSetup*() =
|
||||||
gitPull("https://github.com/tree-sitter/tree-sitter/", incDir() / "treesitter", """
|
gitPull("https://github.com/tree-sitter/tree-sitter/", incDir() / "treesitter", """
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import strutils, os
|
import strutils, os
|
||||||
|
|
||||||
import ".."/[setup,paths]
|
import ".."/[setup, paths]
|
||||||
|
|
||||||
static:
|
static:
|
||||||
treesitterCSetup()
|
treesitterCSetup()
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,6 @@
|
||||||
import strutils, os
|
import strutils, os
|
||||||
|
|
||||||
import ".."/[setup,paths]
|
import ".."/[setup, paths]
|
||||||
|
|
||||||
static:
|
static:
|
||||||
treesitterCppSetup()
|
treesitterCppSetup()
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
import strutils, os
|
import strutils, os
|
||||||
|
|
||||||
import ".."/[setup,paths]
|
import ".."/[setup, paths]
|
||||||
|
|
||||||
static:
|
static:
|
||||||
treesitterSetup()
|
treesitterSetup()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue