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:
Brandon Fairchild 2015-09-01 16:25:44 -04:00
parent 0bddd25805
commit 24bc6dfb52

View file

@ -199,7 +199,7 @@ def check_rust(file_name, contents):
line = re.sub('^#[A-Za-z0-9\(\)\[\]_]*?$', '', line)
match = re.search(r",[^\s]", line)
if match:
if match and '$' not in line:
yield (idx + 1, "missing space after ,")
if line_is_attribute(line):