Or if you want to give me a headache…
# /// pyproject
# run.dependencies = ["""
# ///
# """]
# ///
Which made me realise that the regex parses to the final # ///
in any comment block as it grabs the whole block here.
This includes examples like this:
# /// pyproject
# [run]
# requires-python = ">=3.11"
# ///
#
# /// newblock
# <content>
# ///
Which is parsed as one pyproject
block by the regex. Is it worth mentioning that a non-comment line is required between/at the end of blocks in the text spec if this is intended?