Idea detail
wildcard_reference_highlighting
reqlan rq/extension/language/syntax/features-syntax-highlighting.rq:269
Summary
Bracket and wikilink forms of wildcard_references
( `*.rq".idea_*`, `label` ) must TextMate-scope as
`meta.link.reqlan` with the path as `string.other.link.reqlan` — never as
`comment.block.reqlan`. The grey " comment " paint happened when `#bracket-references` only
allowed ID suffixes, so `/*` inside an unmatched path opened a block comment.
Fixes: TextMate `#bracket-references` / wiki path patterns accept `WILDCARD_NAME` suffixes;
`#comments` block begin rejects empty slash-star-star-slash; body rules try references before
comments. Semantic tokens paint `WildcardReference.pathPattern` as string and `ideaPattern`
as variable ( syntax_highlighting ).
Related: comments, wildcard_references_webview.
Navigation
Attributes
| Key | Value |
|---|---|
| implementation | patch-textmate.mjs, reqlan.tmLanguage.json, reqlan-semantic-token-provider.ts |
| status | done |
| tests | textmate-wildcard-highlight.test.ts, textmate-wildcard-highlight.test.ts:e2e: bracket wildcard path ref matches link scope and not block comment, semantic-tokens-wildcard.test.ts, semantic-tokens-wildcard.test.ts:e2e: WildcardReference emits string + variable tokens, glob survives tokenize → parse in prose, naked quotes, and reference STRING |
Ancestor context
No ancestor chain recorded.
Outbound references
Inbound references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| references | syntax_highlighting | reqlan rq/extension/language/syntax/features-syntax.rq | wildcard_reference_highlighting |
| references | wildcard_references_webview | reqlan rq/language/imports.rq | wildcard_reference_highlighting |
Unresolved references
| Kind | Idea | Path | Snippet |
|---|---|---|---|
| None | |||
Local graph
Initialising graph…