I don't know if I've hit a bug/limitation in vim or that I'm just doing this wrong, but here goes. I'm trying to highlight Perl 6's POD format as described here: http://perlcabal.org/syn/S26.html
I'm having trouble with nested =begin/=end blocks. Specifically, I want to be able to highlight parts of the =begin/=end lines differently, however, it seems that the only way to highlight the start/end of a nestable region is by using the 'matchgroup' option. But that puts the whole=begin/=end line under the same highlighting group. If I define the region without using matchgroup and then make it contain an item which matches the =begin/=end lines to customize the highlighting, it messes with nesting. I'll show you what I mean: # proper nesting but limited highlighting http://img371.imageshack.us/img371/4424/case1zo6.png # broken nesting but better highlighting http://img139.imageshack.us/img139/1553/case2xp5.png As seen in the second screenshot, the POD region never ends (the last three lines should be white, not blue). But if I add 'keepend' to it, it ends after the first "=end", which is too early. nest.vim: http://vim.pastey.net/101908 nest.txt: http://vim.pastey.net/101909 --~--~---------~--~----~------------~-------~--~----~ You received this message from the "vim_dev" maillist. For more information, visit http://www.vim.org/maillist.php -~----------~----~----~----~------~----~------~--~---
