653 def streamCommentStr(self): |
653 def streamCommentStr(self): |
654 """ |
654 """ |
655 Public method to return the stream comment strings. |
655 Public method to return the stream comment strings. |
656 |
656 |
657 @return dictionary containing the start and end stream comment strings |
657 @return dictionary containing the start and end stream comment strings |
658 @type dict of {"start": str, "end": str} |
658 @rtype dict of {"start": str, "end": str} |
659 """ |
659 """ |
660 try: |
660 try: |
661 return self.__streamCommentString |
661 return self.__streamCommentString |
662 except KeyError: |
662 except KeyError: |
663 return {"start": "", "end": ""} |
663 return {"start": "", "end": ""} |
666 """ |
666 """ |
667 Public method to determine, whether the lexer language supports a |
667 Public method to determine, whether the lexer language supports a |
668 stream comment. |
668 stream comment. |
669 |
669 |
670 @return flag indicating stream comment is available |
670 @return flag indicating stream comment is available |
671 @type bool |
671 @rtype bool |
672 """ |
672 """ |
673 return self.name() in self.__streamCommentString |
673 return self.name() in self.__streamCommentString |
674 |
674 |
675 def boxCommentStr(self): |
675 def boxCommentStr(self): |
676 """ |
676 """ |
677 Public method to return the box comment strings. |
677 Public method to return the box comment strings. |
678 |
678 |
679 @return dictionary containing the start, middle and end box comment strings |
679 @return dictionary containing the start, middle and end box comment strings |
680 @type dict of {"start": str, "middle": str, "end": str} |
680 @rtype dict of {"start": str, "middle": str, "end": str} |
681 """ |
681 """ |
682 try: |
682 try: |
683 return self.__boxCommentString |
683 return self.__boxCommentString |
684 except KeyError: |
684 except KeyError: |
685 return {"start": "", "middle": "", "end": ""} |
685 return {"start": "", "middle": "", "end": ""} |