Idea detail
reference_edgecase
reqlan rq/reference_types.rq:188
block
done
Summary
A quoted string is a file_reference only when it is inside brackets.
Example of a file reference: reference_types.rq
Example of body text: " this is not a reference. rq "
The file suffix does not change this rule.
The parser must not make a file reference from quoted body text.
The language server must not make a document link or a missing-file error from quoted body text.
Related: reference_edgecase, naked_strings_in_body, reference_file.
Navigation
Attributes
| Key | Value |
|---|---|
| implementation | reqlan-embedded-file-references.ts, reqlan-file-link-resolver.ts, reqlan-token-builder.ts, extract.rs, reqlan.langium, lexer.rs |
| status | done |
| tests | references.test.ts:embedded file reference scan ignores unbracketed quoted paths, parsing.test.ts:does not parse unbracketed quoted paths as file references, naked-strings.test.ts:does not emit STRING tokens for unbracketed quoted paths in body, linking.test.ts:unbracketed quoted paths do not produce document links or missing-file diagnostics, file-path-rewrite.test.ts:does not treat unbracketed quoted paths as embedded path references, lexer.rs:unbracketed_quoted_path_in_body_is_not_string, parser.rs:unbracketed_quoted_path_is_not_a_file_reference, extract.rs:unbracketed_quoted_path_is_not_a_file_reference, extract.rs:import_quoted_path_is_not_an_embedded_file_reference |
Ancestor context
No ancestor chain recorded.
Outbound references
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | reference_file | reqlan rq/language/syntax.rq | reference_edgecase |
| references | naked_strings_in_body | reqlan rq/language/syntax.rq | reference_edgecase |
| references | file_reference | reqlan rq/reference_types.rq | reference_edgecase |
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…