src/eric7/QScintilla/Lexers/Lexer.py

branch
eric7
changeset 9295
d14096c04126
parent 9293
7d9d916a9a9f
child 9413
80c06d472826
equal deleted inserted replaced
9294:3c12aacd98d8 9295:d14096c04126
43 def commentStr(self): 43 def commentStr(self):
44 """ 44 """
45 Public method to return the comment string. 45 Public method to return the comment string.
46 46
47 @return comment string 47 @return comment string
48 @type str 48 @rtype str
49 """ 49 """
50 return self.commentString 50 return self.commentString
51 51
52 def canBlockComment(self): 52 def canBlockComment(self):
53 """ 53 """
62 def streamCommentStr(self): 62 def streamCommentStr(self):
63 """ 63 """
64 Public method to return the stream comment strings. 64 Public method to return the stream comment strings.
65 65
66 @return dictionary containing the start and end stream comment strings 66 @return dictionary containing the start and end stream comment strings
67 @type dict of {"start": str, "end": str} 67 @rtype dict of {"start": str, "end": str}
68 """ 68 """
69 return self.streamCommentString 69 return self.streamCommentString
70 70
71 def canStreamComment(self): 71 def canStreamComment(self):
72 """ 72 """
73 Public method to determine, whether the lexer language supports a 73 Public method to determine, whether the lexer language supports a
74 stream comment. 74 stream comment.
75 75
76 @return flag indicating stream comment is available 76 @return flag indicating stream comment is available
77 @type bool 77 @rtype bool
78 """ 78 """
79 return ( 79 return (
80 self.streamCommentString["start"] != "" 80 self.streamCommentString["start"] != ""
81 and self.streamCommentString["end"] != "" 81 and self.streamCommentString["end"] != ""
82 ) 82 )
84 def boxCommentStr(self): 84 def boxCommentStr(self):
85 """ 85 """
86 Public method to return the box comment strings. 86 Public method to return the box comment strings.
87 87
88 @return dictionary containing the start, middle and end box comment strings 88 @return dictionary containing the start, middle and end box comment strings
89 @type dict of {"start": str, "middle": str, "end": str} 89 @rtype dict of {"start": str, "middle": str, "end": str}
90 """ 90 """
91 return self.boxCommentString 91 return self.boxCommentString
92 92
93 def canBoxComment(self): 93 def canBoxComment(self):
94 """ 94 """
95 Public method to determine, whether the lexer language supports a 95 Public method to determine, whether the lexer language supports a
96 box comment. 96 box comment.
97 97
98 @return flag box comment is available 98 @return flag box comment is available
99 @type bool 99 @rtype bool
100 """ 100 """
101 return ( 101 return (
102 (self.boxCommentString["start"] != "") 102 (self.boxCommentString["start"] != "")
103 and (self.boxCommentString["middle"] != "") 103 and (self.boxCommentString["middle"] != "")
104 and (self.boxCommentString["end"] != "") 104 and (self.boxCommentString["end"] != "")

eric ide

mercurial