vim-pandoc-syntax icon indicating copy to clipboard operation
vim-pandoc-syntax copied to clipboard

Syntax highlighting not working until I cursor through the text

Open jyc opened this issue 10 years ago • 3 comments

Sometimes the code syntax highlighting seems to break with large files until I cursor through the relevant regions.

It looks like this:

screen shot 2015-07-06 at 12 25 29 am

Is there something I could do to debug this? I really appreciate you having written this plugin, it's wonderful and great to use.

Thanks!

jyc avatar Jul 06 '15 04:07 jyc

Thanks for the kind words.

It might be caused by several things, it really depends on the document (for example, the scheme syntax might be conflicting with vim-pandoc's). Can you send me a document where this happens? It will help me to debug the issue.

fmoralesc avatar Jul 06 '15 19:07 fmoralesc

I tracked down the cause of this problem in my case - its zotero citation keys that have no author! eg. [@_google_2013] removing the underscore fixes everything, but of course breaks the citation. Its hard to test reliably while editing, but its reproducible on file load.

rafaqz avatar Nov 02 '15 11:11 rafaqz

My problem is on line 283 in pandoc.vim. I guess this is a clash of the need for emphasis within citations and keys with underscores. Pandoc does handle this fine on output, but understandable if it's just easier to enforce pandoc citation style without the underscores - though I'd guess there are a lot of people with zotero exports containing underscores.

rafaqz avatar Nov 02 '15 14:11 rafaqz