move prelude so that include std/prelude also works (#17110)

* move prelude so that `include std/prelude` also works

* add test
This commit is contained in:
Timothee Cour 2021-02-20 09:08:13 -08:00 • committed by GitHub
commit e94a3e5fcd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 28 additions and 11 deletions

View file

@ -1,5 +1,5 @@
include prelude
include std/prelude
proc main(input, output: string) =
type NodeKind = enum

View file

@ -1,5 +1,5 @@
include prelude
include std/prelude
import intsets
type

View file

@ -143,7 +143,7 @@ lib/posix/termios.nim
# some of these are include files so shouldn't be docgen'd
ignoredModules = """
lib/prelude.nim
lib/pure/prelude.nim
lib/pure/future.nim
lib/pure/collections/hashcommon.nim
lib/pure/collections/tableimpl.nim