On Mon, Oct 14, 2013 at 5:05 PM, Brad King <brad.k...@kitware.com> wrote:

> On 10/13/2013 6:03 AM, Alexander Neundorf wrote:
> >> * New quoting syntax: Lua-style long-brackets.  Quoting opens with
> >>   "[" followed by zero or more "=" followed by "[" and closes with
> >>   "]" followed by the same number of "=" followed by "]".
> > What's the purpose of the "=" between the square brackets ?
>
> One can choose a unique number of "=" to match an opening and closing
> bracket so that the closing bracket is known not to appear in the
> enclosed content.  This avoids the need for any escaping even when
> closing brackets other lengths appear in the content.
>
>
This is commonly known as "here document"

http://en.wikipedia.org/wiki/Here_document

-- 
Pau Garcia i Quiles
http://www.elpauer.org
(Due to my workload, I may need 10 days to answer)
--

Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the CMake FAQ at: 
http://www.cmake.org/Wiki/CMake_FAQ

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/cgi-bin/mailman/listinfo/cmake-developers

Reply via email to