Suppress hint, import types in toast

This commit is contained in:
Ganesh Viswanathan 2019-01-30 13:16:24 -06:00
commit b0eba35834
6 changed files with 10 additions and 7 deletions

View file

@ -134,6 +134,9 @@ proc printNimHeader*() =
# $2 $3
{.experimental: "codeReordering".}
{.hint[ConvFromXtoItselfNotNeeded]: off.}
import nimterop/types
""" % [$now(), getAppFilename(), commandLineParams().join(" ")]
proc printNim*(fullpath: string, root: TSNode, astTable: AstTable) =

View file

@ -2,7 +2,7 @@ import hashes, macros, os, strformat, strutils
const CIMPORT {.used.} = 1
import "." / [globals,types,paths]
import "." / [globals, types, paths]
export types
proc interpPath(dir: string): string=

View file

@ -1,6 +1,6 @@
import os, strutils
import "."/[git,paths]
import "."/[git, paths]
proc treesitterSetup*() =
gitPull("https://github.com/tree-sitter/tree-sitter/", incDir() / "treesitter", """
@ -12,7 +12,7 @@ src/runtime/*
*.c
*.h
""")
# TODO: does this work on windows? if not use `os.unixToNativePath`
let
stack = incDir() / "treesitter/src/runtime/stack.c"

View file

@ -1,6 +1,6 @@
import strutils, os
import ".."/[setup,paths]
import ".."/[setup, paths]
static:
treesitterCSetup()

View file

@ -1,6 +1,6 @@
import strutils, os
import ".."/[setup,paths]
import ".."/[setup, paths]
static:
treesitterCppSetup()

View file

@ -2,7 +2,7 @@
import strutils, os
import ".."/[setup,paths]
import ".."/[setup, paths]
static:
treesitterSetup()
@ -16,7 +16,7 @@ when defined(Linux):
{.passC: "-I$1/src" % sourcePath.}
{.passC: "-I$1/../utf8proc" % sourcePath.}
# pending https://github.com/nim-lang/Nim/issues/10299 we need to rename the
# object files (via compile:(foo,bar)) to avoid name collisions, here
# object files (via compile:(foo,bar)) to avoid name collisions, here
# and everywhere `compile` is used
{.compile: sourcePath / "src/runtime/runtime.c".}