complete std prefixes for stdlib (#22887)

follow up https://github.com/nim-lang/Nim/pull/22851
follow up https://github.com/nim-lang/Nim/pull/22873
This commit is contained in:
ringabout
2023-10-31 00:03:04 +08:00
committed by GitHub
parent 403e0118ae
commit 4d11d0619d
142 changed files with 277 additions and 275 deletions

View File

@@ -61,12 +61,12 @@ runnableExamples:
assert find("uxabc", re"(?<=x|y)ab", start = 1).get.captures[-1] == "ab"
assert find("uxabc", re"ab", start = 3).isNone
from pcre import nil
from std/pcre import nil
import nre/private/util
import tables
from strutils import `%`
import options
from unicode import runeLenAt
import std/tables
from std/strutils import `%`
import std/options
from std/unicode import runeLenAt
when defined(nimPreviewSlimSystem):
import std/assertions

View File

@@ -1,5 +1,5 @@
## INTERNAL FILE FOR USE ONLY BY nre.nim.
import tables
import std/tables
const Ident = {'a'..'z', 'A'..'Z', '0'..'9', '_', '\128'..'\255'}
const StartIdent = Ident - {'0'..'9'}

View File

@@ -55,7 +55,7 @@ elif defined(genode):
stdin.readLine(line)
else:
import linenoise
import std/linenoise
proc readLineFromStdin*(prompt: string, line: var string): bool {.
tags: [ReadIOEffect, WriteIOEffect].} =

View File

@@ -36,7 +36,7 @@ runnableExamples:
# can't match start of string since we're starting at 1
import
pcre, strutils, rtarrays
std/[pcre, strutils, rtarrays]
when defined(nimPreviewSlimSystem):
import std/syncio