From 63affe6d2466b622890f34b6ca562ea5ecc98f65 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Wed, 18 Sep 2024 14:58:19 -0400 Subject: Support `use "foo.h"` --- parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/parse.c b/parse.c index f7ac0a4e..b387eb5d 100644 --- a/parse.c +++ b/parse.c @@ -2356,7 +2356,7 @@ PARSER(parse_use) { pos += name_len; while (match(&pos, ";")) continue; int what; - if (name[0] == '<') + if (name[0] == '<' || name[0] == '"') what = USE_HEADER; else if (starts_with(name, "./") || starts_with(name, "/") || starts_with(name, "../") || starts_with(name, "~/")) what = USE_LOCAL; -- cgit v1.2.3