Code reference detail
parsing.test.ts:malformed from-as import keeps later ideas parseable
packages/language/test/parsing.test.ts:malformed from-as import keeps later ideas parseable
| Idea | Status | Tags | Summary |
|---|---|---|---|
| import_error_recovery | A malformed import must not invalidate the rest of the file. Recoverable invalid `from` shapes parse as local import nodes with a line-level diagnostic: - `from "path" as alias` ( mistaken namespace form ) — suggest `import "path" as alias` or `from "path" import <idea>` - bare `from "path"` — require the `import <idea>` clause - `from` without a quoted path — consume the remainder of the line as an invalid import Later imports and top-level ideas continue to parse and link normally. Same recovery posture for nameless top-level braces: ["./syntax.rq".no_name_idea_safe_warning]. If lex / parse never completes, see ["./parser_lexer.rq".parse_budget_timeout]. | ||
| import_keywords | The keywords import, from, and as are reserved for import statements. Import keywords may also appear as ordinary words in idea body text when not at statement start. |
Reference labels
../../packages/language/test/parsing.test.ts:malformed from-as import keeps later ideas parseable