We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 94645f6 commit 797ef64Copy full SHA for 797ef64
src/etc/htmldocck.py
@@ -297,10 +297,24 @@ def filter_line(line):
297
re.X | re.UNICODE,
298
)
299
300
+DEPRECATED_LINE_PATTERN = re.compile(
301
+ r"""
302
+ //\s+@
303
+""",
304
+ re.X | re.UNICODE,
305
+)
306
+
307
308
def get_commands(template):
309
with io.open(template, encoding="utf-8") as f:
310
for lineno, line in concat_multi_lines(f):
311
+ if DEPRECATED_LINE_PATTERN.search(line):
312
+ print_err(
313
+ lineno,
314
+ line,
315
+ "Deprecated command syntax, replace `// @` with `//@ `",
316
+ )
317
+ continue
318
m = LINE_PATTERN.search(line)
319
if not m:
320
continue
0 commit comments