.qmd or .Rmd file with a non-executable code block:
text ```sh code ``` text
Highlighting breaks at the code block's terminating ```
9.2.1116
all
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()
There's a typo at rmd.vim:137 - missing escape in .+.
I also suggest fixing the regexp for end= there to highlight code blocks with an indent (e.g. in lists)
Patch:
--- a/runtime/syntax/rmd.vim +++ b/runtime/syntax/rmd.vim @@ -134,7 +134,7 @@ endif " Step_3: Highlight code blocks. syn region rmdCodeBlock matchgroup=rmdCodeDelim start="^\s*```\s*{.*}$" matchgroup=rmdCodeDelim end="^\s*```\ze\s*$" keepend -syn region rmdCodeBlock matchgroup=rmdCodeDelim start="^\s*```.+$" matchgroup=rmdCodeDelim end="^```$" keepend +syn region rmdCodeBlock matchgroup=rmdCodeDelim start="^\s*```.*$" matchgroup=rmdCodeDelim end="^\s*```\ze\s*$" keepend hi link rmdCodeBlock Special " Now highlight chunks:
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications, keep track of coding agent tasks and review pull requests on the go with GitHub Mobile for iOS and Android. Download it today!
You are receiving this because you are subscribed to this thread.![]()