mathiasfrohlich / vscode-kotlin

Kotlin language support for VS Code
Apache License 2.0
201 stars 21 forks source link

Specific kotlin codeblock breaks markdown document #48

Open nomurashunta opened 4 years ago

nomurashunta commented 4 years ago

First, look at the following.

スクリーンショット 2020-08-18 19 24 41

You can see that the text after the code block is affected by syntax highlighting. I found that the same thing happens when we write certain code within a code block. The easiest way to reproduce this is to write only one "{" character.

スクリーンショット 2020-08-18 19 34 06

I thought it was a bug, so I reported it. thanks.

Antimonit commented 3 years ago

It seems like when there is a word kotlin inserted in a codeblock, it will aggressively start kotlin syntax highlighting, no matter where the word is located within the codeblock and no matter whether another language is already being highlighted.

image image image

It can also easily leak outside of the codeblock.

image image