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

Add support for runtimepath adjustment #48

Open
blueyed opened this issue Jun 3, 2017 · 1 comment
Open

Add support for runtimepath adjustment #48

blueyed opened this issue Jun 3, 2017 · 1 comment

Comments

@blueyed
Copy link
Contributor

blueyed commented Jun 3, 2017

vint cannot lint py/pycompiler.vim / js/jscompiler.vim properly, because they are using a hack to import the s: scope of another file (call extend(s:, vimlparser#import())).

vimlint is able to parse this, since it adds $PWD to the runtimepath (https://github.com/syngan/vim-vimlint/blob/c8b9cd9d8a0fb6dc69667d32819aeef503cff55c/bin/vimlint.sh#L33).

I think this should somehow get supported / done automatically by vimlparser instead - probably based on the file's path, i.e. it should add foo to &rtp in case foo/autoload/bar/baz.vim is parsed.

@haya14busa
Copy link
Member

You can add such functionality on your own using generated AST. I think it's out of scope for vimlparser.

i.e. it should be handled by vim-lint or vint, not vimlparser which should focus on "parsing" Vim script.

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