[cmake-developers] Lua-style long brackets
Nils Gladitz
nilsgladitz at gmail.com
Fri Oct 11 16:03:53 EDT 2013
Does that mean Lua itself is just off the table for 3.0 or altogether?
Nils
On 11.10.2013 21:56, Brad King wrote:
> On 10/11/2013 03:34 PM, Rolf Eike Beer wrote:
>> Just out of curiosity: is the Lua integration affecting the set
>> of supported compilers?
> There is no integration of Lua's source code in my outline. It is
> only a change to the CMake language lexer/parser to handle Lua-style
> long-bracket syntax. For example:
>
> file(WRITE myfile.txt [====[
> This is the first line!
> Arbitrary content without:
> - ${variable} evaluation
> - \-escapes
> - "-quoting
> ]====])
>
> instead of
>
> file(WRITE myfile.txt "This is the first line!
> Arbitrary content without:
> - \${variable} evaluation
> - \\-escapes
> - \"-quoting
> ")
>
> It will also support long-bracket comments, e.g.
>
> #[========[
> This is a multi-line comment that can contain arbitrary text except
> for the close bracket of equal length. It is great for long
> explanations, copyright notices, and commenting out large blocks
> of code. The closing bracket does not need to start in #, but if
> it does then a one-character change to the opening bracket to be
> "##[========[" would enable the entire block and the ending line
> would be a normal one-line comment.
> #]========]
>
> -Brad
> --
>
> 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
More information about the cmake-developers
mailing list