BalticAmadeus / AblFormatter

Code formatter for Progress OpenEdge (ABL)
Apache License 2.0
6 stars 0 forks source link

+=, -=, *=, /= operators cause error. #116

Closed gustason closed 1 month ago

gustason commented 2 months ago

image

This happens with all similar operators, therefore, all of the lines below cause errors:

a += 3.
b -= 3.
c *= 3.
d /= 3.
eglekaz commented 2 months ago

Registered: https://github.com/usagi-coffee/tree-sitter-abl/issues/76

eglekaz commented 1 month ago

Fixed with version 0.0.39 of tree-sitter-abl

gustason commented 1 month ago

I am not sure if this was fixed correctly, since now in the code a += 3., the += does not get parsed at all, it is only a part of the whole assignment node. Should it not work like in a = 3 where = is a node itself?

eglekaz commented 1 month ago

Understood the issue. Registered: https://github.com/usagi-coffee/tree-sitter-abl/issues/86

eglekaz commented 1 month ago

All these operators are now recognized as assignment_operator. Fixed with 0.0.42 version of tree-sitter-abl.