reqlanOverviewIdeasFilesCode filesClustersAttributesGraphPrint

Printable idea sheet

wildcard_reference_highlighting

reqlan rq/extension/language/syntax/features-syntax-highlighting.rq:269

Katz 0.079

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.

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

Interactive page: wildcard_reference_highlighting