tlaplus-community / tree-sitter-tlaplus

A tree-sitter grammar for TLA⁺ and PlusCal
MIT License
57 stars 10 forks source link

Incorrect acceptance of parentheses terminating conjunction list #128

Open ahelwer opened 1 month ago

ahelwer commented 1 month ago

This syntax should be rejected, as SANY correctly rejects it:

---- MODULE Test ----
op ==
    /\ 1
    /\ (2
)
    /\ 3
====

It's possible this cannot be done but requires a close look at the external scanner.