mirror of
https://github.com/servo/servo.git
synced 2025-08-06 06:00:15 +01:00
style: Add comments to ServoBindingTypes.h
Differential Revision: https://phabricator.services.mozilla.com/D8650
This commit is contained in:
parent
3d41f0911f
commit
52d054ab5f
1 changed files with 2 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue