You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
changed the title [-]Semantic tokens for code block doesn't stop at the end of comment[/-][+]TextMate grammar doesn't handle unclosed triple-backtick code blocks in doc comments[/+]on Jul 27, 2026
I've a PR open that fixes this at #6132, however because the grammar is owned in another repo, and the parser used for the tests in that repo is owned in another repo, I'm going to wait to get all those PRs done before landing this one. Those PRs are linked in #6132
Activity
[-]Semantic tokens for code block doesn't stop at the end of comment[/-][+]TextMate grammar doesn't handle unclosed triple-backtick code blocks in doc comments[/+]DanTup commentedon Jul 27, 2026
Oddly, this seems to only occur in some very specific cases.
Here, only the first example seems to be left broken (it's the only one where the
?shows as blue because it's still in code mode):Fortunately TextMate grammars are easy to debug 😂
DanTup commentedon Jul 28, 2026
I've a PR open that fixes this at #6132, however because the grammar is owned in another repo, and the parser used for the tests in that repo is owned in another repo, I'm going to wait to get all those PRs done before landing this one. Those PRs are linked in #6132
Fix the patterns for code blocks and the handling of newlines when ma…
Fix the patterns for code blocks and the handling of newlines when ma…