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

Check if calling function is built-in or variable #105

Closed
tyru opened this issue Jul 18, 2019 · 1 comment
Closed

Check if calling function is built-in or variable #105

tyru opened this issue Jul 18, 2019 · 1 comment

Comments

@tyru
Copy link
Member

tyru commented Jul 18, 2019

#102 (comment)

echo func()

Currently vimlparser doesn't check if func is built-in function or local funcref variable.
Above script is passed with no errors because func may be a built-in function.

@tyru
Copy link
Member Author

tyru commented Mar 6, 2020

vimlparser provides VimLParser.builtin_functions.
now I think vimlparser should not check arity.

  • If the member variable becomes old, vimlparser throws invalid syntax error
  • vimlparser currently just parses syntax and doesn't do semantic analysis. now I no longer think it is really vimlparser's work 🤔

@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