usagi-coffee / tree-sitter-abl

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

Short definition of property has an error #52

Closed PauliusKu closed 2 months ago

PauliusKu commented 2 months ago

image

Reference: https://docs.progress.com/bundle/abl-reference/page/VAR-statement.html

jkbz64 commented 2 months ago

I wouldn't really consider it shorthand as it can define multiple variables and assign values which define can't do (only initial static constants), also don't know if the VAR statement variables are not re-definable (e.g in a loop) like DEFINE (initial does not reset every iteration) is because I don't have an access to 12.x setup. I've decided to name it var_statement and not group it with define_variable, not sure if that's the right way...

PauliusKu commented 2 months ago

Thanks, I think it's better to have it separately