Nimscript supports hint() and warning() procs; refs #3688
This commit is contained in:
parent
089c31765f
commit
e2267ef5c9
4 changed files with 24 additions and 3 deletions
|
|
@ -13,7 +13,7 @@
|
|||
import
|
||||
ast, modules, passes, passaux, condsyms,
|
||||
options, nimconf, lists, sem, semdata, llstream, vm, vmdef, commands, msgs,
|
||||
os, times, osproc
|
||||
os, times, osproc, wordrecg
|
||||
|
||||
# we support 'cmpIgnoreStyle' natively for efficiency:
|
||||
from strutils import cmpIgnoreStyle
|
||||
|
|
@ -116,7 +116,12 @@ proc setupVM*(module: PSym; scriptName: string): PEvalContext =
|
|||
setResult(a, options.command)
|
||||
cbconf switch:
|
||||
processSwitch(a.getString 0, a.getString 1, passPP, unknownLineInfo())
|
||||
|
||||
cbconf hintImpl:
|
||||
processSpecificNote(a.getString 0, wHint, passPP, unknownLineInfo(),
|
||||
a.getString 1)
|
||||
cbconf warningImpl:
|
||||
processSpecificNote(a.getString 0, wWarning, passPP, unknownLineInfo(),
|
||||
a.getString 1)
|
||||
|
||||
proc runNimScript*(scriptName: string; freshDefines=true) =
|
||||
passes.gIncludeFile = includeModule
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue