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

Not getting syntax highlighting for JS sections

Open wamoyo opened this issue 7 years ago • 5 comments

Picture's worth 24.5 words:

screenshot from 2018-11-06 23-21-31

I changed laptops, and moved all my config files over, but of course, some things don't work. This be one of 'em : )

wamoyo avatar Nov 07 '18 04:11 wamoyo

Gnome Terminal version 3.28.2 # GNOME Terminal 3.28.2 using VTE 0.52.2 +GNUTLS -PCRE2

Neovim version: NVIM v0.2.2

wamoyo avatar Nov 07 '18 18:11 wamoyo

Also, listed the question on the Vi Stack Exchange: https://vi.stackexchange.com/questions/17903/fixing-pug-syntax-highlighting, seemed to help a bit.

wamoyo avatar Nov 14 '18 14:11 wamoyo

Moll's advice form the issue #98 was great.

Adding syn region pugJavascriptLine start=/^\s*-/ end=/$/ contains=@htmlJavascript

Resolved the issue.

Shall I set up a pull request?

wamoyo avatar Nov 17 '18 21:11 wamoyo

That advice did not resolve this issue for me. After a taking a deep dive into pug.vim and the docs I have a bit of a fix. Would like to submit a PR if that's alright.

meloncatty avatar Feb 01 '19 02:02 meloncatty

@meloncatty can you check out the newly introduced issues this fix added in issue #112 ?

acidjazz avatar Feb 06 '19 01:02 acidjazz