usagi-coffee / tree-sitter-abl

OpenEdge ABL grammar for tree-sitter
MIT License
7 stars 1 forks source link

Tree-sitter parses certain blocks as a body type #69

Closed PauliusKu closed 2 months ago

PauliusKu commented 2 months ago

For example, in the code

PROCEDURE testCase:
    DEFINE VARIABLE i AS INTEGER NO-UNDO.
    i = 2.

    CASE i:
        WHEN 1
        THEN DO:
            MESSAGE "Case 1".
        END.
        OTHERWISE
        MESSAGE "No match found".
    END CASE.
END PROCEDURE.

The block

DO:
    MESSAGE "Case 1".
END.

is additionally parsed as a body: image

jkbz64 commented 2 months ago

oops, released in 0.0.32

PauliusKu commented 2 months ago

@jkbz64 you are sooo quick 😄 I haven't even finished my coffee. Thanks 👍