aboutsummaryrefslogtreecommitdiffstats
path: root/python/tidy/servo_tidy/tidy.py
diff options
context:
space:
mode:
authorPer Lundberg <perlun@gmail.com>2016-04-21 00:06:25 +0300
committerPer Lundberg <perlun@gmail.com>2016-04-21 22:42:35 +0300
commitd0489f1160419570b692a8729184ed833c93a433 (patch)
treed77cfcdcadebfa2fd236daf9d16a7e67ee98dd78 /python/tidy/servo_tidy/tidy.py
parenta6fc440125d3b10adf199bee6ab49e3b3e480d0c (diff)
downloadservo-d0489f1160419570b692a8729184ed833c93a433.tar.gz
servo-d0489f1160419570b692a8729184ed833c93a433.zip
Improve properties.mako.rs file structure, take 2
This is a new attempt of #10586, after Simon Sapin's great cleanups in #10749 has landed. I have adjusted the changes to the new structure that was introduced, and also only done a few of the longhand ones. Will certainly continue on this as soon as we have a basic agreement that this style is reasonable.
Diffstat (limited to 'python/tidy/servo_tidy/tidy.py')
-rw-r--r--python/tidy/servo_tidy/tidy.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/python/tidy/servo_tidy/tidy.py b/python/tidy/servo_tidy/tidy.py
index 206346675e2..12a8633297f 100644
--- a/python/tidy/servo_tidy/tidy.py
+++ b/python/tidy/servo_tidy/tidy.py
@@ -278,6 +278,8 @@ def check_toml(file_name, lines):
def check_rust(file_name, lines):
if not file_name.endswith(".rs") or \
file_name.endswith("properties.mako.rs") or \
+ file_name.find("properties/longhand") or \
+ file_name.find("properties/shorthand") or \
file_name.endswith(os.path.join("style", "build.rs")) or \
file_name.endswith(os.path.join("geckolib", "build.rs")) or \
file_name.endswith(os.path.join("unit", "style", "stylesheets.rs")):