<-- previous rule | overview | next rule -->
Ensures that there is at least one space before and after the " comment sign.
- Separate code and " comment with a space
- Start " comment with space
METHOD space_around_comment_sign.
"Comment signs
"are NOT the same as "quotation marks",
"so it looks much better
"to put a space between the " and the text.
CLEAR ev_result. "the same is true at line end
lv_value = 0."comment
ls_pair = VALUE #(" initial comment
a = '3.1415'" pi
b = '1.4142'" sqrt(2)
)."final comment
ENDMETHOD.
Resulting code:
METHOD space_around_comment_sign.
" Comment signs
" are NOT the same as "quotation marks",
" so it looks much better
" to put a space between the " and the text.
CLEAR ev_result. " the same is true at line end
lv_value = 0. " comment
ls_pair = VALUE #( " initial comment
a = '3.1415' " pi
b = '1.4142' " sqrt(2)
). " final comment
ENDMETHOD.