tree-sitter-rescript icon indicating copy to clipboard operation
tree-sitter-rescript copied to clipboard

Error: if expression with else clause on next line

Open aspeddro opened this issue 2 years ago • 0 comments

if true {
  true
}
else {
  false
}
(source_file [0, 0] - [6, 0]
  (expression_statement [0, 0] - [2, 1]
    (if_expression [0, 0] - [2, 1]
      (true [0, 3] - [0, 7])
      (block [0, 8] - [2, 1]
        (expression_statement [1, 2] - [1, 6]
          (true [1, 2] - [1, 6])))))
  (expression_statement [3, 0] - [3, 4]
    (value_identifier [3, 0] - [3, 4]))
  (expression_statement [3, 5] - [5, 1]
    (block [3, 5] - [5, 1]
      (expression_statement [4, 2] - [4, 7]
        (false [4, 2] - [4, 7])))))
/home/pedro/Desktop/test-filetypes/rescript_test.res    0 ms    (MISSING ";" [3, 4] - [3, 4])

aspeddro avatar Apr 23 '23 00:04 aspeddro