aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy/servo_tidy
diff options
context:
space:
mode:
authorHugo Thiessard <hugo.thiessard@opmbx.org>2016-09-21 23:50:18 +0200
committerHugo Thiessard <hugo.thiessard@opmbx.org>2016-09-23 14:01:58 +0200
commit0ac212afb18c98ea929368e9ccf21101e7a8921c (patch)
treee1e551143e9af8ae1532a50acbc290aa474e8014 /python/tidy/servo_tidy
parent7b98c8a78819c57d90ed06c83f1376d4f38c8748 (diff)
downloadservo-0ac212afb18c98ea929368e9ccf21101e7a8921c.tar.gz
servo-0ac212afb18c98ea929368e9ccf21101e7a8921c.zip
Issue #13350 Report tidy error for space after (
Diffstat (limited to 'python/tidy/servo_tidy')
-rw-r--r--python/tidy/servo_tidy/tidy.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/python/tidy/servo_tidy/tidy.py b/python/tidy/servo_tidy/tidy.py
index 081352f8a43..4b02f9dbf07 100644
--- a/python/tidy/servo_tidy/tidy.py
+++ b/python/tidy/servo_tidy/tidy.py
@@ -483,6 +483,7 @@ def check_rust(file_name, lines):
(r"\{[A-Za-z0-9_]+\};", "use statement contains braces for single import",
lambda match, line: line.startswith('use ')),
(r"^\s*else {", "else braces should be on the same line", no_filter),
+ (r"[^$ ]\([ \t]", "extra space after (", no_filter),
]
for pattern, message, filter_func in regex_rules: