Skip to content

Bad parse of range expression with parenthesized right-side #86

@joshuawarner32

Description

@joshuawarner32

Hi! I just ran into a parse tree that looks incorrect to me. The following is parsed as a call expression, where the function is itself a range expression - rather than just being parsed as a range expression.

1..(1)

Expected:

 (range_expression (integer_literal) (parenthesized_expression (integer_literal)))

Actual:

(call_expression function: (range_expression (integer_literal)) arguments: (arguments (integer_literal)))

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions