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

Parse error when operating on variable named var #163

Closed
Sjord opened this issue Feb 18, 2021 · 1 comment · Fixed by #280
Closed

Parse error when operating on variable named var #163

Sjord opened this issue Feb 18, 2021 · 1 comment · Fixed by #280

Comments

@Sjord
Copy link
Collaborator

Sjord commented Feb 18, 2021

using System;

public class HelloWorldVar
{
    public static void Main()
    {
        int var = 3;
        Console.WriteLine(var + 1);
    }
}
$ tree-sitter parse Program.cs
...
Program.cs	0 ms	(ERROR [7, 26] - [7, 29])
@damieng damieng added the bug label Mar 21, 2021
@initram
Copy link
Contributor

initram commented Apr 8, 2021

The same issue exists (and is documented in the readme) for async and await. They can not be used as identifiers either.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants