summaryrefslogtreecommitdiff
path: root/query.zig
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--query.zig16
1 files changed, 16 insertions, 0 deletions
diff --git a/query.zig b/query.zig
index 198d308..8af0494 100644
--- a/query.zig
+++ b/query.zig
@@ -63,6 +63,22 @@ pub const ParsedQuery = struct {
63 buf[pos] = c; 63 buf[pos] = c;
64 pos += 1; 64 pos += 1;
65 }, 65 },
66 '\'', '"' => {
67 state = .InsideString;
68 buf[pos] = c;
69 pos += 1;
70 },
71 else => {
72 buf[pos] = c;
73 pos += 1;
74 },
75 },
76 .InsideString => switch (c) {
77 '\'', '"' => {
78 state = .Start;
79 buf[pos] = c;
80 pos += 1;
81 },
66 else => { 82 else => {
67 buf[pos] = c; 83 buf[pos] = c;
68 pos += 1; 84 pos += 1;