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

Cannot use is, isnot for variable name #169

Open
tyru opened this issue Mar 26, 2020 · 1 comment
Open

Cannot use is, isnot for variable name #169

tyru opened this issue Mar 26, 2020 · 1 comment
Labels

Comments

@tyru
Copy link
Member

tyru commented Mar 26, 2020

let is = 42
vimlparser: unexpected token: is: line 75 col 5
let isnot = 42
vimlparser: unexpected token: isnot: line 75 col 5
@tyru tyru added the bug label Mar 26, 2020
@koron
Copy link
Member

koron commented Mar 27, 2020

tokenizer が先に token として認識しちゃってそう。

elseif c ==# 'i' && r.p(1) ==# 's' && !s:isidc(r.p(2))
if r.p(2) ==# '?'
call r.seek_cur(3)
return self.token(s:TOKEN_ISCI, 'is?', pos)
elseif r.p(2) ==# '#'
call r.seek_cur(3)
return self.token(s:TOKEN_ISCS, 'is#', pos)
else
call r.seek_cur(2)
return self.token(s:TOKEN_IS, 'is', pos)

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