Printable idea sheet
comment_reference
reqlan rq/language/syntax.rq:569
Katz 0.365
Reqlan references may appear in line comments of arbitrary source files.
Comment reference syntax is `rq:idea` or `rq:idea` ( quoted path, optional extra qualification ).
Qualified paths use the same path forms as imports, including import-root aliases such as `@/` — configuration_import_root_alias, comment_reference_import_root_alias.
Discovery skips quoted strings, including Rust raw strings ( `r#"…"#`, `r##"…"##`, `br#"…"#` ), so `rq:…` text in a string is not a live comment.
Editor language coverage is a blocklist, not an allowlist: comment_reference_language_blocklist.
Indexed as `comment_link` by index_code_files.
Unresolved targets: comment_reference_resolution_error.
Indexer listing: test_references.
Refactors: comment_reference_refactor_support.
- implementation
- comment.rs, reqlan-comment-resolver.ts, reqlan-comment-diagnostics.ts, reqlan-path-resolve.ts, register-comment-reference-links.ts, comment-reference-path-context.ts, comment-reference-languages.ts
- status
- done
- tests
- comment.rs:ignores_rq_inside_strings, comment.rs:ignores_rq_inside_rust_raw_strings, comment.rs:click_rs_fixture_string_is_not_a_comment_ref, comment.rs:still_finds_line_comment_after_a_raw_string, references.test.ts:skips rq tokens inside Rust raw strings, comment-reference-resolution.test.ts:creates a document link for an import-root aliased comment reference, comment.rs:resolves_aliased_qualified_comment_path
Interactive page: comment_reference