From 52d054ab5fd27deb76bad198c76f4289b4e2ce93 Mon Sep 17 00:00:00 2001 From: Cameron McCormack Date: Sun, 14 Oct 2018 23:29:59 +0000 Subject: [PATCH] style: Add comments to ServoBindingTypes.h Differential Revision: https://phabricator.services.mozilla.com/D8650 --- components/style/build_gecko.rs | 2 ++ 1 file changed, 2 insertions(+) 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