servo: Merge #7499 - Improve style nit check for space after a comma (from nerith:style); r=metajack
Fixes #7345. Source-Repo: https://github.com/servo/servo Source-Revision: 3424e234c8c86e787edfce6dc63ed155617e0e85
This commit is contained in:
@@ -230,8 +230,8 @@ def check_rust(file_name, contents):
|
||||
# get rid of attributes that do not contain =
|
||||
line = re.sub('^#[A-Za-z0-9\(\)\[\]_]*?$', '', line)
|
||||
|
||||
match = re.search(r",[A-Za-z0-9]", line)
|
||||
if match:
|
||||
match = re.search(r",[^\s]", line)
|
||||
if match and '$' not in line:
|
||||
yield (idx + 1, "missing space after ,")
|
||||
|
||||
if line_is_attribute(line):
|
||||
|
||||
Reference in New Issue
Block a user