briot / tree-sitter-ada

Ada grammar for tree-sitter
MIT License
21 stars 5 forks source link

Correct parsing of discrete_choice expressions. #7

Closed brownts closed 1 year ago

brownts commented 1 year ago

The existing grammar was causing simple expressions to be incorrectly parsed as a subtype indication. This change raises the precedence for a discrete choice expression to address that issue.

Updated the test corpus to reflect the parsing correction. Additional test cases were added for discrete choice.

Fixes #6.

briot commented 1 year ago

Pull request looks good and was merged. Thanks !