Scanner.st
changeset 3288 a98543e59971
parent 3283 22fb2ba70dd9
child 3312 2c069ef9726e
equal deleted inserted replaced
3287:915a98fda4d2 3288:a98543e59971
  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:[
  3636 ! !
  3640 ! !
  3637 
  3641 
  3638 !Scanner class methodsFor:'documentation'!
  3642 !Scanner class methodsFor:'documentation'!
  3639 
  3643 
  3640 version
  3644 version
  3641     ^ '$Header: /cvs/stx/stx/libcomp/Scanner.st,v 1.302 2013-08-25 16:51:53 cg Exp $'
  3645     ^ '$Header: /cvs/stx/stx/libcomp/Scanner.st,v 1.303 2013-08-26 09:24:41 cg Exp $'
  3642 !
  3646 !
  3643 
  3647 
  3644 version_CVS
  3648 version_CVS
  3645     ^ '$Header: /cvs/stx/stx/libcomp/Scanner.st,v 1.302 2013-08-25 16:51:53 cg Exp $'
  3649     ^ '$Header: /cvs/stx/stx/libcomp/Scanner.st,v 1.303 2013-08-26 09:24:41 cg Exp $'
  3646 ! !
  3650 ! !
  3647 
  3651 
  3648 
  3652 
  3649 Scanner initialize!
  3653 Scanner initialize!