style: Add comments to ServoBindingTypes.h

Differential Revision: https://phabricator.services.mozilla.com/D8650
This commit is contained in:
Cameron McCormack 2018-10-14 23:29:59 +00:00 committed by Emilio Cobos Álvarez
parent 3d41f0911f
commit 52d054ab5f
No known key found for this signature in database
GPG key ID: 056B727BB9C1027C

View file

@ -310,7 +310,9 @@ mod bindings {
.expect("Fail to read ServoArcTypeList.h");
// Remove comments
let block_comment_re = Regex::new(r#"(?s)/\*.*?\*/"#).unwrap();
let line_comment_re = Regex::new(r#"//.*"#).unwrap();
let content = block_comment_re.replace_all(&content, "");
let content = line_comment_re.replace_all(&content, "");
// Extract the list
let re = Regex::new(r#"^SERVO_ARC_TYPE\(\w+,\s*(\w+)\)$"#).unwrap();
content