Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG with multiple syntax and after with vim-syntax-shakespeare #434

Closed
wolftune opened this issue Mar 3, 2016 · 1 comment
Closed

BUG with multiple syntax and after with vim-syntax-shakespeare #434

wolftune opened this issue Mar 3, 2016 · 1 comment
Assignees
Labels

Comments

@wolftune
Copy link

wolftune commented Mar 3, 2016

This was working fine, but with new PlugUpgrade I get errors.

My .vimrc has:

Plug 'pbrisbin/vim-syntax-shakespeare', { 'for': ['hamlet', 'cassius', 'julius', 'haskell'] }

And whenever I open a .hs file (even new blank one), I get this:

Error detected while processing /home/aaron/.vim/plugged/vim-syntax-shakespeare/after/syntax/haskell.vim:
line    7:
E121: Undefined variable: b:current_syntax
E15: Invalid expression: b:current_syntax
line    8:
E108: No such variable: "b:current_syntax"
line   54:
E121: Undefined variable: old_syntax
E15: Invalid expression: old_syntax

I see several recent changes in the Plug history that could be at fault here. Hope this can be fixed quickly. Thanks

@junegunn junegunn added the bug label Mar 3, 2016
@junegunn junegunn self-assigned this Mar 3, 2016
@junegunn
Copy link
Owner

junegunn commented Mar 3, 2016

Thanks for the report. It's an exceptional case where the plugin only has after/syntax/haskell.vim file without syntax/haskell.vim. Using runtime command to load the file instead of picking up the file using globpath within the plugin directory fixes the issue.

junegunn added a commit that referenced this issue Mar 3, 2016
…434)

There can be multiple files that matches the pattern (e.g.
syntax/foo.vim) in &runtimepath.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants