Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Single line TYPES: statements do not always have the colon removed #347

Open
matthewdjb opened this issue Aug 21, 2024 · 1 comment
Open

Comments

@matthewdjb
Copy link

Single line TYPES: statements do not always have the colon removed

For example

TYPES: BEGIN OF ty_test.
             INCLUDE TYPE mara.
    TYPES:   a_field TYPE abap_bool.
    TYPES: END OF ty_test.

The colons are not removed after keyword TYPES.

@jmgrassau
Copy link
Member

Hi Matthew,

this is intentional – ABAP cleaner would be fine without colons as well …

    TYPES BEGIN OF ty_test.
            INCLUDE TYPE mara.
    TYPES   a_field TYPE abap_bool.
    TYPES END OF ty_test.

… but if someone then uses PrettyPrinter on this, you get:

    TYPES BEGIN OF ty_test.
    INCLUDE TYPE mara.
    TYPES   a_field TYPE abap_bool.
    TYPES END OF ty_test.

This doesn't happen with colons, and that's why in this special case, ABAP cleaner keeps the colons.

Kind regards,
Jörg-Michael

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants