summaryrefslogtreecommitdiff
path: root/lib/inifile
diff options
context:
space:
mode:
authorOri Bernstein <ori@markovcorp.com>2017-07-17 15:30:01 -0700
committerOri Bernstein <ori@markovcorp.com>2017-07-17 15:30:01 -0700
commit492aca3ff6f829ee09c52e17c86a808430ee7df4 (patch)
treef97424e14c9d3277c78ff53082daec725e1f4dcb /lib/inifile
parent11f79ed8ff75049f6b1866d70bc032c8d18b1463 (diff)
downloadmc-492aca3ff6f829ee09c52e17c86a808430ee7df4.tar.gz
Convert from `in` to `:`.
The winds of change are a-blowin.
Diffstat (limited to 'lib/inifile')
-rw-r--r--lib/inifile/parse.myr4
-rw-r--r--lib/inifile/test/inifile.myr2
-rw-r--r--lib/inifile/write.myr2
3 files changed, 4 insertions, 4 deletions
diff --git a/lib/inifile/parse.myr b/lib/inifile/parse.myr
index 28718f9..e2490c2 100644
--- a/lib/inifile/parse.myr
+++ b/lib/inifile/parse.myr
@@ -25,12 +25,12 @@ const load = {path
}
const free = {ini
- for ((sect, key), val) in std.byhtkeyvals(ini.elts)
+ for ((sect, key), val) : std.byhtkeyvals(ini.elts)
std.slfree(val)
std.slfree(sect)
std.slfree(key)
;;
- for s in ini.sects
+ for s : ini.sects
std.slfree(s)
;;
std.slfree(ini.sects)
diff --git a/lib/inifile/test/inifile.myr b/lib/inifile/test/inifile.myr
index f3c7a98..ccc43f9 100644
--- a/lib/inifile/test/inifile.myr
+++ b/lib/inifile/test/inifile.myr
@@ -43,7 +43,7 @@ const itersects = {
ini = std.try(inifile.load("test/test.ini"))
somesect=0
anothersection=0
- for k in inifile.bysection(ini)
+ for k : inifile.bysection(ini)
match k
| "somesect": somesect++
| "another section": anothersection++
diff --git a/lib/inifile/write.myr b/lib/inifile/write.myr
index deb3ccc..1c7071d 100644
--- a/lib/inifile/write.myr
+++ b/lib/inifile/write.myr
@@ -44,7 +44,7 @@ const writeini = {f, ini
})
oldsect = ""
- for (sect, key) in keys
+ for (sect, key) : keys
std.put("sect={}, oldsect={}\n", sect, oldsect)
if !std.sleq(sect, oldsect)
bio.put(f, "[{}]\n", sect)