Tuesday, March 11, 2014

Syntax Coloring seems to not scan Folded sections correctly.

I have seen this in more than one place, where a section of code
has a long text literal (150-200 characters) in single quotes.
The text after the fold is colored as "quoted" -- even though
it isn't.

If the fold is opened, it parses normally. I was unable to
get any resync using "Control-L".

The folded section is not long -- ~20 lines total.

My vimrc has:
let g:perl_sync_dist=16384
let g:perl_minlines=2048
let g_perl_maxlines=16384

which should be more than enough -- it's not the distance that's the
problem -- open, it works fine, v. it reliably stays out of sync once
you go forward (^f), off the page the fold is on and later come
back to it. Reproducible in Version 7.3.480 on windows, as well as
7.4.52 on linux.

Any ideas on why it isn't parsing w/fold? Is there some setting specially
to reduce parse distance inside a fold? (like by 100x)

Thanks!





--
--
You received this message from the "vim_use" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

---
You received this message because you are subscribed to the Google Groups "vim_use" group.
To unsubscribe from this group and stop receiving emails from it, send an email to vim_use+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

No comments: