diff options
author | Brandon Fairchild <csbit32@gmail.com> | 2015-09-01 15:02:41 -0400 |
---|---|---|
committer | Brandon Fairchild <csbit32@gmail.com> | 2015-09-01 15:02:41 -0400 |
commit | 0bddd2580530cd99de809ce70390a8d8799173ff (patch) | |
tree | e5092d7c3258d881975745b6a15b7f74cfdc07c2 /python/tidy.py | |
parent | 9f85370885c84ebb58cd7f4a72a6e78948f468dc (diff) | |
download | servo-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.py | 2 |
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 ,") |