mirror of
https://github.com/servo/servo.git
synced 2025-08-04 13:10:20 +01:00
python/tidy.py: Ignore macros in style nit check
Lines with macros were flagged as errors when checking for space after a comma.
This commit is contained in:
parent
0bddd25805
commit
24bc6dfb52
1 changed files with 1 additions and 1 deletions
|
@ -199,7 +199,7 @@ def check_rust(file_name, contents):
|
||||||
line = re.sub('^#[A-Za-z0-9\(\)\[\]_]*?$', '', line)
|
line = re.sub('^#[A-Za-z0-9\(\)\[\]_]*?$', '', line)
|
||||||
|
|
||||||
match = re.search(r",[^\s]", line)
|
match = re.search(r",[^\s]", line)
|
||||||
if match:
|
if match and '$' not in line:
|
||||||
yield (idx + 1, "missing space after ,")
|
yield (idx + 1, "missing space after ,")
|
||||||
|
|
||||||
if line_is_attribute(line):
|
if line_is_attribute(line):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue