diff --git a/python/tidy.py b/python/tidy.py index 23fcde6e1d2..2b3709f1ca7 100644 --- a/python/tidy.py +++ b/python/tidy.py @@ -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):