On 10/22/2013 07:15 AM, Ian Liu Rodrigues wrote:
>  * Possibility to wrap long lines, maybe with a backslash at the end
>    of the line;

Yes, good idea.  This makes sense inside quoted arguments:

message(STATUS "\
This is the first line! \
It is really long so we split it with a continuation. \
Actually it is the only line!\
")

The syntax has always generated errors in the past so it can be
done without changing behavior for previously working code.

Fortunately some of the recent lexer changes made for the bracket
arguments makes this feature a one-line change to the lexer:

 http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=efcf318f

Note that \-continuation does not make sense within the new
bracket-argument syntax whose purpose is to hold literal content
with no escaping.  All backslashes are literal, including those
just before a newline.

Thanks,
-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

Reply via email to