src/eric7/QScintilla/Lexers/LexerPygments.py

branch
eric7
changeset 9295
d14096c04126
parent 9293
7d9d916a9a9f
child 9413
80c06d472826
equal deleted inserted replaced
9294:3c12aacd98d8 9295:d14096c04126
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": ""}
688 """ 688 """
689 Public method to determine, whether the lexer language supports a 689 Public method to determine, whether the lexer language supports a
690 box comment. 690 box comment.
691 691
692 @return flag box comment is available 692 @return flag box comment is available
693 @type bool 693 @rtype bool
694 """ 694 """
695 return self.name() in self.__boxCommentString 695 return self.name() in self.__boxCommentString

eric ide

mercurial