mirror of
https://github.com/servo/servo.git
synced 2025-06-08 00:23:30 +00:00
Improve style nit check for space after a comma
Only a small number of things that followed a comma were flagged. This improves the thoroughness of that check. Fixes #7345.
This commit is contained in:
parent
9f85370885
commit
0bddd25805
1 changed files with 1 additions and 1 deletions
|
@ -198,7 +198,7 @@ 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)
|
||||
match = re.search(r",[^\s]", line)
|
||||
if match:
|
||||
yield (idx + 1, "missing space after ,")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue