3514 saveComments ifTrue:[ |
3514 saveComments ifTrue:[ |
3515 commentText := commentStream contents. |
3515 commentText := commentStream contents. |
3516 self endComment:commentText type:commentType. |
3516 self endComment:commentText type:commentType. |
3517 ]. |
3517 ]. |
3518 |
3518 |
3519 parserFlags warnAboutBadComments ifTrue:[ |
3519 ignoreWarnings ifFalse:[ |
3520 anyNonBlank ifFalse:[ |
3520 parserFlags warnAboutBadComments ifTrue:[ |
3521 commentType ~~ #eolComment ifTrue:[ |
3521 anyNonBlank ifFalse:[ |
3522 self isDoIt ifFalse:[ |
3522 commentType ~~ #eolComment ifTrue:[ |
3523 self warning:'empty comment' position:startPos to:endPos+1. |
3523 self isDoIt ifFalse:[ |
3524 parserFlags warnAboutBadComments:false. |
3524 self |
3525 ] |
3525 warning:'empty comment' |
3526 ]. |
3526 doNotShowAgainAction:[ ParserFlags warnAboutBadComments: false ] |
3527 ]. |
3527 position:startPos to:endPos+1. |
3528 ]. |
3528 parserFlags warnAboutBadComments:false. |
3529 |
3529 ] |
|
3530 ]. |
|
3531 ]. |
|
3532 ]. |
|
3533 ]. |
3530 "Modified: / 30-07-2013 / 20:56:33 / cg" |
3534 "Modified: / 30-07-2013 / 20:56:33 / cg" |
3531 ! |
3535 ! |
3532 |
3536 |
3533 skipToEndOfLineRememberingIn:commentStreamOrNil |
3537 skipToEndOfLineRememberingIn:commentStreamOrNil |
3534 [hereChar notNil and:[hereChar ~~ Character cr]] whileTrue:[ |
3538 [hereChar notNil and:[hereChar ~~ Character cr]] whileTrue:[ |