aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy.py
diff options
context:
space:
mode:
authorBrandon Fairchild <csbit32@gmail.com>2015-09-01 15:02:41 -0400
committerBrandon Fairchild <csbit32@gmail.com>2015-09-01 15:02:41 -0400
commit0bddd2580530cd99de809ce70390a8d8799173ff (patch)
treee5092d7c3258d881975745b6a15b7f74cfdc07c2 /python/tidy.py
parent9f85370885c84ebb58cd7f4a72a6e78948f468dc (diff)
downloadservo-0bddd2580530cd99de809ce70390a8d8799173ff.tar.gz
servo-0bddd2580530cd99de809ce70390a8d8799173ff.zip
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.
Diffstat (limited to 'python/tidy.py')
-rw-r--r--python/tidy.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/tidy.py b/python/tidy.py
index 1185a08e759..23fcde6e1d2 100644
--- a/python/tidy.py
+++ b/python/tidy.py
@@ -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 ,")