Skip to content

Highlight [[var]] and code only in strings and comments - #713

Merged
bbatsov merged 1 commit into
masterfrom
fix-wikilinks-in-code
Nov 7, 2026
Merged

bbatsov merged 1 commit into
masterfrom
fix-wikilinks-in-code

Conversation

@bbatsov

@bbatsov bbatsov commented Nov 7, 2026

Copy link
Copy Markdown
Member

The wikilink and code-mark rules matched anywhere, so Datalog relation bindings like [[?x]] and destructuring like (fn [[x]] x) got the constant face in code. They now only apply in strings and comments, docstrings included, which is what #496 added them for.

Fixes #707

The rules for docstring wikilinks and code marks matched anywhere, so in
code they caught Datalog relation bindings like [[?x]], destructuring
like (fn [[x]] x), and two syntax-quoted symbols in a row.
@bbatsov
bbatsov merged commit 7c019fa into master Nov 7, 2026
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[[var]] wikilink font-lock rule collides with Datalog/Datomic relation-binding syntax

1 participant