Skip to content

AST breaks with ( in declaration section #64

@aMOPel

Description

@aMOPel
let 
  a: int = 
let_section [93, 0] - [94, 10]
  "let" [93, 0] - [93, 3]
  variable_declaration [94, 2] - [94, 8]
    symbol_declaration_list [94, 2] - [94, 3]
      symbol_declaration [94, 2] - [94, 3]
        name: identifier [94, 2] - [94, 3]
    type: ":" [94, 3] - [94, 4]
    type: type_expression [94, 5] - [94, 8]
      identifier [94, 5] - [94, 8]
  ERROR [94, 9] - [94, 10]
    "=" [94, 9] - [94, 10]

when typing ( it breaks the (let_section)

let 
  a: int = (
"let" [93, 0] - [93, 3]
symbol_declaration_list [94, 2] - [94, 3]
  symbol_declaration [94, 2] - [94, 3]
    name: identifier [94, 2] - [94, 3]
":" [94, 3] - [94, 4]
type_expression [94, 5] - [94, 8]
  identifier [94, 5] - [94, 8]
"=" [94, 9] - [94, 10]
"(" [94, 11] - [94, 12]

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions