diff --git a/components/style/build_gecko.rs b/components/style/build_gecko.rs index 1ecc7ec6fc3..f3f5f110daf 100644 --- a/components/style/build_gecko.rs +++ b/components/style/build_gecko.rs @@ -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