diff options
author | bptato <nincsnevem662@gmail.com> | 2023-10-09 00:49:48 +0200 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2023-10-09 00:49:48 +0200 |
commit | ca853e040ff09543467d24fcb48ea0f348634cf0 (patch) | |
tree | a528b7f39ef8c6cbb1ff9da5fc8a39ddc25c0899 | |
parent | 4b1fd6425ef22163748c042d5b185480b6a16d03 (diff) | |
download | chawan-ca853e040ff09543467d24fcb48ea0f348634cf0.tar.gz |
config: fix `include` naming
use what is documented
-rw-r--r-- | src/config/config.nim | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/config/config.nim b/src/config/config.nim index 0df6285a..871b4e3c 100644 --- a/src/config/config.nim +++ b/src/config/config.nim @@ -119,7 +119,7 @@ type Config* = ref ConfigObj ConfigObj* = object configdir {.jsget.}: string - includes {.jsget.}: seq[string] + `include` {.jsget.}: seq[string] start* {.jsget.}: StartConfig search* {.jsget.}: SearchConfig css* {.jsget.}: CSSConfig @@ -579,10 +579,10 @@ proc parseConfigValue(x: var CSSConfig, v: TomlValue, k: string) = proc parseConfig(config: Config, dir: string, t: TomlValue) = gdir = dir parseConfigValue(config[], t, "") - while config.includes.len > 0: + while config.`include`.len > 0: #TODO: warn about recursive includes - let includes = config.includes - config.includes.setLen(0) + var includes = config.`include` + config.`include`.setLen(0) for s in includes: when nimvm: config.parseConfig(dir, staticRead(dir / s)) |