configuration system supports %= to access environment variables

This commit is contained in:
Araq 2015-02-07 12:55:23 +01:00
commit 0b5c42f405
4 changed files with 20 additions and 12 deletions

View file

@ -158,7 +158,7 @@ proc getValue(t: StringTableRef, flags: set[FormatFlag], key: string): string =
else: result = ""
if result.len == 0:
if useKey in flags: result = '$' & key
elif not (useEmpty in flags): raiseFormatException(key)
elif useEmpty notin flags: raiseFormatException(key)
proc newStringTable*(mode: StringTableMode): StringTableRef {.
rtl, extern: "nst$1".} =