diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-09-02 12:05:58 -0600 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-09-02 12:05:58 -0600 |
commit | 3424e234c8c86e787edfce6dc63ed155617e0e85 (patch) | |
tree | 01a240e212e9bb0cf5843ebb4b030bc8949acdc3 /python/tidy.py | |
parent | 366d4a83f1448e115cf998cc6c4e8c564773da65 (diff) | |
parent | d61a6e2161bbce5182a5e1b9c504c55d5b2aa2f4 (diff) | |
download | servo-3424e234c8c86e787edfce6dc63ed155617e0e85.tar.gz servo-3424e234c8c86e787edfce6dc63ed155617e0e85.zip |
Auto merge of #7499 - nerith:style, r=metajack
Improve style nit check for space after a comma
Fixes #7345.
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7499)
<!-- Reviewable:end -->
Diffstat (limited to 'python/tidy.py')
-rw-r--r-- | python/tidy.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/tidy.py b/python/tidy.py index 97e90c52dc6..95691893525 100644 --- a/python/tidy.py +++ b/python/tidy.py @@ -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): |