vim-scala
vim-scala copied to clipboard
[Highlight] partially broken within `tpope/vim-markdown` fenced code
vim-markdown supports fenced code highlight with in markdown.
the problem is that vim-scala syntax works well for filetype=scala
but partially broken inside filetype=markdown
.
It's reproducible for code like object ID {
or def Foo() {
.
I assumed it's something related to brackets since adding // }
would revoke highlights below this line.
I think it might related to the dynamics of vim-scala/syntax
here:
exe 'syn region scalaBlock start=/{/ end=/}/ contains=' . s:ContainedGroup() . ' fold'
I am not sure what's the problem so I fired issues on both side: vim-markdown: https://github.com/tpope/vim-markdown/issues/142 vim-scala: https://github.com/derekwyatt/vim-scala/issues/157
@Huxpro why did you close the issues? Did you resolve it somehow?
Can still reproduce this on current master, so I'll re-open.
@benknoble I thought no one is maintaining and interested in this lol. Thx for reopening.