(self, pos, comments)
| 218 | return [(match.start(), match.end()) for match in re.finditer(pattern, content)] |
| 219 | |
| 220 | def is_in_comment(self, pos, comments): |
| 221 | for start, end in comments: |
| 222 | if start < pos and pos < end: |
| 223 | return True |
| 224 | if pos < start: |
| 225 | return False |
| 226 | return False |
| 227 | |
| 228 | def url_converter(self, name, hashed_files, template=None, comment_blocks=None): |
| 229 | """ |