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

"[]" in function name breaks file parsing #458

Closed
lucasvinbr opened this issue Mar 22, 2021 · 1 comment
Closed

"[]" in function name breaks file parsing #458

lucasvinbr opened this issue Mar 22, 2021 · 1 comment
Labels
bug Something isn't working

Comments

@lucasvinbr
Copy link

lucasvinbr commented Mar 22, 2021

Describe the bug
Adding a "[]" to a function name causes all errors in the file containing the function to "disappear". The error "The [name] form cannot be used" is not shown unless something is written between the brackets.

If the function with the brackets is inside a file that has been added as library, all the functions and other stuff from the file won't be read/used, apparently.

To Reproduce
Steps to reproduce the behavior:

  1. Create a new lua file
  2. Write "function asdf[]() end"
  3. Write random text in the file and notice no errors are found

Expected behavior
An error to be shown (and all the other errors in the file, if any)

Environment (please complete the following information):

  • OS: Windows
  • Client: VSCode

Additional context
log file

@sumneko sumneko added the bug Something isn't working label Mar 22, 2021
@sumneko
Copy link
Collaborator

sumneko commented Mar 22, 2021

Thank you for reporting!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants