Skip to content

fix: used parsed docstring format regardless of local setting#14200

Merged
david-christiansen merged 1 commit into
leanprover:masterfrom
david-christiansen:verso-docstring-macro
Jun 28, 2026
Merged

fix: used parsed docstring format regardless of local setting#14200
david-christiansen merged 1 commit into
leanprover:masterfrom
david-christiansen:verso-docstring-macro

Conversation

@david-christiansen

Copy link
Copy Markdown
Contributor

This PR causes docstrings in macros to follow the value of the doc.verso option at the the macro's definition site, rather than its use site. Before, the use-site option was used, making it impossible to use macros in contexts where the option's value disagreed because the parsed format was incorrect. Now, the parsed format in the syntax is used regardless of the option's local setting.

Because the syntactic form of the docstring now fully determines its interpretation, the Boolean interpretation flag was also removed.

This PR causes docstrings in macros to follow the value of the
`doc.verso` option at the the macro's definition site, rather than its
use site. Before, the use-site option was used, making it impossible
to use macros in contexts where the option's value disagreed because
the parsed format was incorrect. Now, the parsed format in the syntax
is used regardless of the option's local setting.

Because the syntactic form of the docstring now fully determines its
interpretation, the Boolean interpretation flag was also removed.
@david-christiansen david-christiansen added the changelog-language Language features and metaprograms label Jun 27, 2026
@github-actions github-actions Bot added the toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN label Jun 27, 2026
@mathlib-lean-pr-testing

Copy link
Copy Markdown

Mathlib CI status (docs):

  • ❗ Batteries/Mathlib CI will not be attempted unless your PR branches off the nightly-with-mathlib branch. Try git rebase 45e668d09492b90939bd072e3cd1769e9f71893c --onto 0758b1d2e33c65ccea578abb0c668aab1f811608. You can force Mathlib CI using the force-mathlib-ci label. (2026-06-27 17:31:22)

@leanprover-bot

Copy link
Copy Markdown
Collaborator

Reference manual CI status:

  • ❗ Reference manual CI will not be attempted unless your PR branches off the nightly-with-manual branch. Try git rebase 45e668d09492b90939bd072e3cd1769e9f71893c --onto 84b251f7390c20a0a00a221050ab4a6e6c46a191. You can force reference manual CI using the force-manual-ci label. (2026-06-27 17:31:24)

@david-christiansen david-christiansen added this pull request to the merge queue Jun 28, 2026
Merged via the queue into leanprover:master with commit de5b7f2 Jun 28, 2026
24 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

changelog-language Language features and metaprograms toolchain-available A toolchain is available for this PR, at leanprover/lean4-pr-releases:pr-release-NNNN

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants