about summary refs log tree commit diff stats
path: root/src/config
diff options
context:
space:
mode:
authorbptato <nincsnevem662@gmail.com>2023-10-26 23:27:53 +0200
committerbptato <nincsnevem662@gmail.com>2023-10-26 23:27:53 +0200
commit2f627f0d7aaf3dd0c44ef3aeb30ec33948a2786d (patch)
treeec15397a9ff4148e4f204095184f4e92fe5426cb /src/config
parent94e001b3cf15374b77a1542c22f97a9ddd1e398f (diff)
downloadchawan-2f627f0d7aaf3dd0c44ef3aeb30ec33948a2786d.tar.gz
toml: fix dquote escaping
Diffstat (limited to 'src/config')
-rw-r--r--src/config/toml.nim2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/config/toml.nim b/src/config/toml.nim
index fe28ee27..4c195871 100644
--- a/src/config/toml.nim
+++ b/src/config/toml.nim
@@ -211,7 +211,7 @@ proc consumeString(state: var TomlParser, first: char):
     let c = state.consume()
     if c == '\n' and not multiline:
       return state.err("newline in string")
-    elif c == first:
+    elif not escape and c == first:
       if multiline:
         if state.has(1):
           let c2 = state.peek(0)