Support use "foo.h"

This commit is contained in:
Bruce Hill 2024-09-18 14:58:19 -04:00
parent 693caebcfb
commit 63affe6d24

View File

@ -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;