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"] != "") |