Is the index given to the HyperParser in normal code?
(self)
| 108 | in ('"', "'")) |
| 109 | |
| 110 | def is_in_code(self): |
| 111 | """Is the index given to the HyperParser in normal code?""" |
| 112 | return (not self.isopener[self.indexbracket] or |
| 113 | self.rawtext[self.bracketing[self.indexbracket][0]] |
| 114 | not in ('#', '"', "'")) |
| 115 | |
| 116 | def get_surrounding_brackets(self, openers='([{', mustclose=False): |
| 117 | """Return bracket indexes or None. |
no outgoing calls