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 get node/token name #140

Closed
tyru opened this issue Aug 7, 2019 · 1 comment
Closed

Cannot get node/token name #140

tyru opened this issue Aug 7, 2019 · 1 comment

Comments

@tyru
Copy link
Member

tyru commented Aug 7, 2019

vimlparser should provide node/token map of s:NODE_* and s:TOKEN_* constants?

@tyru
Copy link
Member Author

tyru commented Aug 7, 2019

I want to write like this.

  if a:node.type !=# s:NODE_STRING
    throw s:Err(printf('expected regexp string node, but got %s node', s:node_name[a:node.type]), a:node.pos)
  endif

and maybe vimlparser users sometimes needs this assertion.

@blueyed what do you think? vint does not need this type assertion? or already implemented in vint?

@tyru tyru closed this as completed Mar 6, 2020
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

1 participant