Lines Matching refs:line

25     'important', 'include', 'line-block', 'list-table', 'meta', 'note',
175 for lno, line in enumerate(lines, start=1):
176 if seems_directive_re.search(line):
178 if three_dot_directive_re.search(line):
180 if double_backtick_role.search(line):
182 if role_with_no_backticks.search(line):
184 if role_glued_with_word.search(line):
186 if ".. productionlist::" in line:
188 elif not inprod and default_role_re.search(line):
190 elif inprod and not line.strip():
196 """Check for whitespace and line length issues."""
197 for lno, line in enumerate(lines):
198 if '\r' in line:
199 yield lno+1, '\\r in line'
200 if '\t' in line:
202 if line[:-1].rstrip(' \t') != line[:-1]:
208 """Check for line length; this checker is not run by default."""
209 for lno, line in enumerate(lines):
210 if len(line) > 81:
212 if line.lstrip()[0] not in '+|' and \
213 'http://' not in line and \
214 not line.lstrip().startswith(('.. function',
217 yield lno+1, "line too long"
225 for lno, line in enumerate(lines):
226 if leaked_markup_re.search(line):
227 yield lno+1, 'possibly leaked markup: %r' % line
233 It yields empty lines in place of blocks, so line numbers are
237 for line in lines:
238 if line.endswith("::\n"):
241 if line == "\n" or line.startswith(" "):
242 line = "\n"
245 yield line
248 def type_of_explicit_markup(line):
249 if re.match(fr'\.\. {all_directives}::', line):
251 if re.match(r'\.\. \[[0-9]+\] ', line):
253 if re.match(r'\.\. \[[^\]]+\] ', line):
255 if re.match(r'\.\. _.*[^_]: ', line):
257 if re.match(r'\.\. \|[^\|]*\| ', line):
265 It yields empty lines in place of comments, so line numbers are
269 for line in lines:
270 if line == "..\n":
273 if line == "\n" or line.startswith(" "):
274 line = "\n"
277 if line.startswith(".. ") and type_of_explicit_markup(line) == 'comment':
278 line = "\n"
279 yield line
292 for lno, line in enumerate(hide_comments(hide_literal_blocks(lines))):
293 tokens = line.split("``")