tree-sitter-tiger/test/corpus/regressions.txt
Bruno BELANYI 21172e21e7 Fix assignment priority
The assignment operator is lower priority than any other binary
operator.

Otherwise the following:

```tiger
a := b | c
```

Would be parsed as:

```tiger
(a := b) | c
```

Instead of the expected:

```tiger
a := (b | c)
```
2022-06-04 21:45:40 +02:00

17 lines
430 B
Plaintext

================================================================================
Assignment precedence
================================================================================
a := b | c
--------------------------------------------------------------------------------
(source_file
(assignment_expression
(identifier)
(operator)
(binary_expression
(identifier)
(operator)
(identifier))))