aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Hill <bruce@bruce-hill.com>2024-09-18 14:58:19 -0400
committerBruce Hill <bruce@bruce-hill.com>2024-09-18 14:58:19 -0400
commit63affe6d2466b622890f34b6ca562ea5ecc98f65 (patch)
tree0b168f6c82a8b485e52b44b49605ff7d40e4b124
parent693caebcfbe47fa8a7d7bf725e2ed1c082eeb7a5 (diff)
Support `use "foo.h"`
-rw-r--r--parse.c2
1 files changed, 1 insertions, 1 deletions
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;