mirror of
https://github.com/reactos/CMake.git
synced 2025-01-07 11:40:23 +00:00
daa0f6f98d
Teach the CMake language parser to recognize Lua-style "long bracket" arguments. These start with two '[' separated by zero or more '=' characters e.g. "[[" or "[=[" or "[==[". They end with two ']' separated by the same number of '=' as the opening bracket. There is no nesting of brackets of the same level (number of '='). No escapes, variable expansion, or other processing is performed on the content between such brackets so they always represent exactly one argument. Also teach CMake to parse and ignore "long comment" syntax. A long comment starts with "#" immediately followed by an opening long bracket. It ends at the matching close long bracket. Teach the RunCMake.Syntax test to cover long bracket and long comment cases.
9 lines
287 B
Plaintext
9 lines
287 B
Plaintext
CMake Error: Error in cmake code at
|
|
.*/Syntax/UnterminatedBracket0.cmake:2:
|
|
Parse error. Function missing ending "\)". Instead found unterminated bracket with text "\)
|
|
".
|
|
CMake Error at CMakeLists.txt:3 \(include\):
|
|
include could not find load file:
|
|
|
|
UnterminatedBracket0.cmake$
|