From 8fa82f611c25059c980be8457516435f112c46da Mon Sep 17 00:00:00 2001 From: David Raifaizen Date: Sun, 14 Feb 2016 12:23:53 -0500 Subject: [PATCH] Adding warning to properties.mako.rs regarding the Mako parser mangling Rust code --- components/style/properties.mako.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/style/properties.mako.rs b/components/style/properties.mako.rs index 46d121c4fb3..d9d8580731a 100644 --- a/components/style/properties.mako.rs +++ b/components/style/properties.mako.rs @@ -4,6 +4,10 @@ // This file is a Mako template: http://www.makotemplates.org/ +// Please note that valid Rust syntax may be mangled by the Mako parser. +// For example, Vec<&Foo> will be mangled as Vec&Foo>. To work around these issues, the code +// can be escaped. In the above example, Vec<<&Foo> achieves the desired result of Vec<&Foo>. + use std::ascii::AsciiExt; use std::collections::HashSet; use std::default::Default;