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

Improve VAR parsing for arrays #284

Open
gustason opened this issue Dec 20, 2024 · 1 comment
Open

Improve VAR parsing for arrays #284

gustason opened this issue Dec 20, 2024 · 1 comment
Labels
bug Something isn't working help wanted Extra attention is needed to create 🌳 Create and link tree-sitter ticket

Comments

@gustason
Copy link
Collaborator

For example, in the code

VAR INT[4] myArray = [10,11,12,13].

it would be nice if [4] would get parsed as an array_literal.

@gustason gustason added bug Something isn't working to create 🌳 Create and link tree-sitter ticket labels Dec 20, 2024
@eglekaz
Copy link
Collaborator

eglekaz commented Jan 10, 2025

@gustason could you please give a bit more insight on why it is needed?
As I can see in the documentation, it is just an indication that variable is array, not array itself. And it must be an integer.
So having number_literal in brackets does not look wrong.

@eglekaz eglekaz added the help wanted Extra attention is needed label Jan 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working help wanted Extra attention is needed to create 🌳 Create and link tree-sitter ticket
Projects
None yet
Development

No branches or pull requests

2 participants