diff options
| author | Ginger Bill <bill@gingerbill.org> | 2017-08-27 14:42:19 +0100 |
|---|---|---|
| committer | Ginger Bill <bill@gingerbill.org> | 2017-08-27 14:42:19 +0100 |
| commit | 6707c8750e951ed6533ab3d4240314cf0bba7147 (patch) | |
| tree | 81c3da56ac6f26fd5e51beb8e0433a5c0fbf563f /src/parser.cpp | |
| parent | e5502c13eef07b3cef9947c47b133555e33b8d85 (diff) | |
Import cycle checking
Diffstat (limited to 'src/parser.cpp')
| -rw-r--r-- | src/parser.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/parser.cpp b/src/parser.cpp index e504a0d62..cc6837a9f 100644 --- a/src/parser.cpp +++ b/src/parser.cpp @@ -4946,6 +4946,8 @@ void parse_setup_file_decls(Parser *p, AstFile *f, String base_dir, Array<AstNod } } + import_file = string_trim_whitespace(import_file); + id->fullpath = import_file; try_add_import_path(p, import_file, file_str, ast_node_token(node).pos); } |