BalticAmadeus / AblFormatter

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

Cannot name variables that start with "for" or "define". #124

Closed SSaulenas closed 2 months ago

SSaulenas commented 2 months ago

For example,

case dateFormat:
    when "YYYYYMMDD"
    then
        formattedDate = STRING(day, "99").
    otherwise
        message "HEEOLOO".
end.

turns into:

case dateFormat:
    when "YYYYYMMDD"
    then for
        mattedDate = STRING(day, "99").
    otherwise
        message "HEEOLOO".
end.

Similarly, if you use "define," it can result in:

case dateFormat:
    when "YYYYYMMDD"
    then define
        mattedDate = STRING(day, "99").
    otherwise
        message "HEEOLOO".
end.

image

eglekaz commented 2 months ago

Description of the issue was added to an existing tree-sitter-abl issue: https://github.com/usagi-coffee/tree-sitter-abl/issues/53

eglekaz commented 2 months ago

Copied the description to issue #113 and closing this one.