diff options
author | David Raifaizen <d-raif@hotmail.com> | 2016-02-14 12:23:53 -0500 |
---|---|---|
committer | David Raifaizen <d-raif@hotmail.com> | 2016-02-14 12:23:53 -0500 |
commit | 8fa82f611c25059c980be8457516435f112c46da (patch) | |
tree | b9179c00430521770ee4c991a01f293ee74914fe | |
parent | 80e55c7ce42fae08c6517facab686913c0c4eef8 (diff) | |
download | servo-8fa82f611c25059c980be8457516435f112c46da.tar.gz servo-8fa82f611c25059c980be8457516435f112c46da.zip |
Adding warning to properties.mako.rs regarding the Mako parser mangling Rust code
-rw-r--r-- | components/style/properties.mako.rs | 4 |
1 files changed, 4 insertions, 0 deletions
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; |