Is the index given to the HyperParser in a string?
(self)
| 100 | self.indexbracket += 1 |
| 101 | |
| 102 | def is_in_string(self): |
| 103 | """Is the index given to the HyperParser in a string?""" |
| 104 | # The bracket to which we belong should be an opener. |
| 105 | # If it's an opener, it has to have a character. |
| 106 | return (self.isopener[self.indexbracket] and |
| 107 | self.rawtext[self.bracketing[self.indexbracket][0]] |
| 108 | in ('"', "'")) |
| 109 | |
| 110 | def is_in_code(self): |
| 111 | """Is the index given to the HyperParser in normal code?""" |
no outgoing calls