derekwyatt / vim-scala

My work on integration of Scala into Vim - not a ton here, but useful for me.
http://derekwyatt.org
Apache License 2.0
1.09k stars 144 forks source link

[Highlight] partially broken within `tpope/vim-markdown` fenced code #157

Open Huxpro opened 5 years ago

Huxpro commented 5 years ago

Screen Shot 2019-07-09 at 8 37 52 PM

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

benknoble commented 4 years ago

@Huxpro why did you close the issues? Did you resolve it somehow?

ches commented 4 years ago

Can still reproduce this on current master, so I'll re-open.

Huxpro commented 4 years ago

@benknoble I thought no one is maintaining and interested in this lol. Thx for reopening.