vim-scala icon indicating copy to clipboard operation
vim-scala copied to clipboard

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

Open Huxpro opened this issue 5 years ago • 3 comments

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

Huxpro avatar Jul 10 '19 03:07 Huxpro

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

benknoble avatar Oct 04 '19 01:10 benknoble

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

ches avatar Nov 04 '19 18:11 ches

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

Huxpro avatar Nov 05 '19 00:11 Huxpro