You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The rule "Convert upper and lower case" is not working correctly for keyword "text", if the value has any letter in it.
Imagine two situations: WRITE text-042 WRITE text-a42
For the first one "text" will be converted to "TEXT" with default setting.
But in the second case "text" is not converted.
IMHO this is bug as Pretty Print converts it to upper case and abaplint reports it as error if not converted.
The text was updated successfully, but these errors were encountered:
For some background: Code bits that aren't separated with a space – such as lo_any_instance->any_method( or ms_struc-component-subcomponent – are usually stored in one single token in ABAP cleaner, because except for display colors, there is no reason to ever tear them apart. In this case, however, some special processing was needed, because TEXT-a42 contains both a keyword and an identifier (unlike the other examples above).
The issue will be fixed in the next release, and coloring is now also adjusted to ADT:
As in ADT, the result depends on the settings for keywords and identifiers, so you could also get:
Kind regards,
Jörg-Michael
jmgrassau
added a commit
to jmgrassau/abap-cleaner
that referenced
this issue
Sep 4, 2023
The rule "Convert upper and lower case" is not working correctly for keyword "text", if the value has any letter in it.
Imagine two situations:
WRITE text-042
WRITE text-a42
For the first one "text" will be converted to "TEXT" with default setting.
But in the second case "text" is not converted.
IMHO this is bug as Pretty Print converts it to upper case and abaplint reports it as error if not converted.
The text was updated successfully, but these errors were encountered: