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

"unexpected token" with var as dict key #271

Open
blueyed opened this issue Apr 11, 2018 · 3 comments
Open

"unexpected token" with var as dict key #271

blueyed opened this issue Apr 11, 2018 · 3 comments

Comments

@blueyed
Copy link
Member

blueyed commented Apr 11, 2018

Given t.vim:

function! F()
  echo {'foo': {bar: baz}}
endfunction

vint t.py says:

t.vim:2:22: unexpected token: baz (see vim-jp/vim-vimlparser)

vimlint however correctly says:

t.vim:2:17:Error: EVL101: undefined variable `l:bar`
t.vim:2:22:Error: EVL101: undefined variable `l:baz`
@blueyed
Copy link
Member Author

blueyed commented Apr 11, 2018

Since this appears to come from vimlparser I should probably check if the same version is used in both cases?!

@blueyed
Copy link
Member Author

blueyed commented Apr 13, 2018

It also happens when the var is defined:

let bar = 'bar'
echo {'foo': {bar: '1'}}

t.vim:2:20: unexpected token: ' (see vim-jp/vim-vimlparser)

@blueyed blueyed changed the title "unexpected token" with undefined var as dict key "unexpected token" with var as dict key Apr 13, 2018
lambdalisue added a commit to lambdalisue/vital-Whisky that referenced this issue Sep 29, 2018
Vimjas/vint#271 is critical so remove vim-vint for now.
@tyru
Copy link
Collaborator

tyru commented Mar 6, 2020

ref: vim-jp/vim-vimlparser#79

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

No branches or pull requests

3 participants