make Nimble not crash after the refactoring
This commit is contained in:
parent
b7116a28ee
commit
dfc17e5f8e
2 changed files with 3 additions and 2 deletions
|
|
@ -237,7 +237,8 @@ proc openLexer*(lex: var TLexer, filename: string, inputstream: PLLStream;
|
||||||
openLexer(lex, filename.fileInfoIdx, inputstream, cache, config)
|
openLexer(lex, filename.fileInfoIdx, inputstream, cache, config)
|
||||||
|
|
||||||
proc closeLexer*(lex: var TLexer) =
|
proc closeLexer*(lex: var TLexer) =
|
||||||
inc(lex.config.linesCompiled, lex.lineNumber)
|
if lex.config != nil:
|
||||||
|
inc(lex.config.linesCompiled, lex.lineNumber)
|
||||||
closeBaseLexer(lex)
|
closeBaseLexer(lex)
|
||||||
|
|
||||||
proc getLineInfo(L: TLexer): TLineInfo =
|
proc getLineInfo(L: TLexer): TLineInfo =
|
||||||
|
|
|
||||||
2
koch.nim
2
koch.nim
|
|
@ -252,7 +252,7 @@ proc xz(args: string) =
|
||||||
|
|
||||||
proc buildTool(toolname, args: string) =
|
proc buildTool(toolname, args: string) =
|
||||||
nimexec("cc $# $#" % [args, toolname])
|
nimexec("cc $# $#" % [args, toolname])
|
||||||
copyFile(dest="bin"/ splitFile(toolname).name.exe, source=toolname.exe)
|
copyFile(dest="bin" / splitFile(toolname).name.exe, source=toolname.exe)
|
||||||
|
|
||||||
proc buildTools(latest: bool) =
|
proc buildTools(latest: bool) =
|
||||||
let nimsugExe = "bin/nimsuggest".exe
|
let nimsugExe = "bin/nimsuggest".exe
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue