xolox / vim-easytags

Automated tag file generation and syntax highlighting of tags in Vim
http://peterodding.com/code/vim/easytags/
1.01k stars 109 forks source link

Easytags strips folds from shell scripts #20

Closed deadite81 closed 12 years ago

deadite81 commented 12 years ago

Hi, thanks for the great extension. I have noticed a problem with folding.

I have syntax folding and Bash folding enabled in my .vimrc:

set foldmethod=syntax let g:is_bash = 1 let g:sh_fold_enabled = 3

When I don't have Easytags syntax highlighting enabled the folds are correct:

http://i.imgur.com/aorit.png

When it is enabled after the first update (manual or automatic) all the folds disappear:

http://i.imgur.com/8P6pF.png

I'm brand new to Vim so don't really know how to go about diagnosing the problem further, but it doesn't seem to affect Ruby, which is the only other file type I tried.

xolox commented 12 years ago

Thanks for the bug report, I can reproduce the problem but I'm not yet sure how to fix it.

xolox commented 12 years ago

I think the issue is fixed now. Thanks for the bug report!

deadite81 commented 12 years ago

Yes, it's fixed now, thank you for such a quick reply!

It seems there is a side-effect, although it's not particularly important. This no longer works:

hi shFunctionTag guifg=#268bd2

For example, using the Solarized colorscheme the functions themselves remain blue, but the instances of the functions being used elsewhere are green.

In any case, the folding is fixed, which is more important than the color ;)