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

Undefined variable: b:current_syntax #23

Closed
ianks opened this issue May 29, 2015 · 1 comment
Closed

Undefined variable: b:current_syntax #23

ianks opened this issue May 29, 2015 · 1 comment

Comments

@ianks
Copy link

ianks commented May 29, 2015

/home/ianks/.yadr/editors/vim/plugged/rspec.vim/syntax/rspec.vim, line 7
Vim(let):E121: Undefined variable: b:current_syntax
Error occurred while executing "open" action!

Since #22 was merged I have been getting this error when opening any *_spec.rb file. b:current_syntax is not guanteed to be defined, and it seems it fails at this point. I am not sure why this is different in my case, but it seems ruby syntax is not loaded before the rspec.vim is loaded.

@keith
Copy link
Owner

keith commented May 29, 2015

I've reverted that PR until we have a fix. #24

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants