abap-cleaner icon indicating copy to clipboard operation
abap-cleaner copied to clipboard

Beginning comments with " instead of * does not work in chained data statements

Open Koch013 opened this issue 2 years ago • 1 comments

Hi,

as the title says, comments in chained data statements are not recognized correctly (rule "unchain into multiple statements" is unchecked):

* Data declaration 
DATA gv_int TYPE I.
* Comment between separated DATA statements 
DATA gv_res2   TYPE decfloat16.

DATA: gv_result TYPE p length 8 DECIMALS 4,
* Comment in chained DATA statement      
      gv_test   TYPE abap_bool.

ABAP Cleaner result:

" Data declaration 
DATA gv_int  TYPE i.
" Comment between separated DATA statements 
DATA gv_res2 TYPE decfloat16.

DATA: gv_result TYPE p LENGTH 8 DECIMALS 4,
* Comment in chained DATA statement      
      gv_test   TYPE abap_bool.

Koch013 avatar Nov 29 '23 10:11 Koch013

Hi,

that's a good point, thanks! Will check whether this can be enhanced accordingly.

Kind regards, Jörg-Michael

jmgrassau avatar Nov 29 '23 12:11 jmgrassau