CMake/Tests/RunCMake/Syntax
Brad King efcf318f8d Add \-continuation to CMake language quoted arguments
Teach the CMake language lexer to treat the \-LF pair terminating a
line ending in an odd number of backslashes inside a quoted argument
as a continuation.  Drop the pair from the returned quoted argument
token text.  This will allow long lines inside quoted argument
strings to be divided across multiple lines in the source file.
It will also allow quoted argument text to start on the line after
the opening quote.  For example, the code:

 set(x "\
 ...")

sets variable "x" to the value "..." with no opening newline.

Previously an odd number of backslashes at the end of a line inside
a quoted argument would put a \-LF pair (or a \-CR pair) literally
in the argument.  Then the command-argument evaluator would complain
that the \-escape sequence is invalid.  Therefore this syntax is
available to use without changing behavior of valid existing code.

Teach the RunCMake.Syntax test to cover cases of quoted arguments
with lines ending in \, \\, and \\\.  Odd counts are continuations.
2013-10-23 09:02:07 -04:00
..
.gitattributes Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BOM-UTF-8-stdout.txt cmListFileLexer: Allow a leading UTF-8 Byte-Order-Mark (#11137) 2013-10-17 09:06:59 -04:00
BOM-UTF-8.cmake cmListFileLexer: Allow a leading UTF-8 Byte-Order-Mark (#11137) 2013-10-17 09:06:59 -04:00
BOM-UTF-16-BE-result.txt cmListFileLexer: Allow a leading UTF-8 Byte-Order-Mark (#11137) 2013-10-17 09:06:59 -04:00
BOM-UTF-16-BE-stderr.txt cmListFileLexer: Allow a leading UTF-8 Byte-Order-Mark (#11137) 2013-10-17 09:06:59 -04:00
BOM-UTF-16-BE.cmake cmListFileLexer: Allow a leading UTF-8 Byte-Order-Mark (#11137) 2013-10-17 09:06:59 -04:00
BOM-UTF-16-LE-result.txt cmListFileLexer: Allow a leading UTF-8 Byte-Order-Mark (#11137) 2013-10-17 09:06:59 -04:00
BOM-UTF-16-LE-stderr.txt cmListFileLexer: Allow a leading UTF-8 Byte-Order-Mark (#11137) 2013-10-17 09:06:59 -04:00
BOM-UTF-16-LE.cmake cmListFileLexer: Allow a leading UTF-8 Byte-Order-Mark (#11137) 2013-10-17 09:06:59 -04:00
BOM-UTF-32-BE-result.txt cmListFileLexer: Allow a leading UTF-8 Byte-Order-Mark (#11137) 2013-10-17 09:06:59 -04:00
BOM-UTF-32-BE-stderr.txt cmListFileLexer: Allow a leading UTF-8 Byte-Order-Mark (#11137) 2013-10-17 09:06:59 -04:00
BOM-UTF-32-BE.cmake cmListFileLexer: Allow a leading UTF-8 Byte-Order-Mark (#11137) 2013-10-17 09:06:59 -04:00
BOM-UTF-32-LE-result.txt cmListFileLexer: Allow a leading UTF-8 Byte-Order-Mark (#11137) 2013-10-17 09:06:59 -04:00
BOM-UTF-32-LE-stderr.txt cmListFileLexer: Allow a leading UTF-8 Byte-Order-Mark (#11137) 2013-10-17 09:06:59 -04:00
BOM-UTF-32-LE.cmake cmListFileLexer: Allow a leading UTF-8 Byte-Order-Mark (#11137) 2013-10-17 09:06:59 -04:00
Bracket0-stderr.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
Bracket0.cmake Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
Bracket1-stderr.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
Bracket1.cmake Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
Bracket2-stdout.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
Bracket2.cmake Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketBackslash-result.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketBackslash-stderr.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketBackslash.cmake Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketCRLF-stderr.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketCRLF.cmake Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketComment0-stdout.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketComment0.cmake Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketComment1-result.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketComment1-stderr.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketComment1.cmake Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketComment2-result.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketComment2-stderr.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketComment2.cmake Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketComment3-stdout.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketComment3.cmake Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketComment4-result.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketComment4-stderr.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketComment4.cmake Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketComment5-stdout.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketComment5.cmake Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketNoSpace0-result.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketNoSpace0-stderr.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketNoSpace0.cmake Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketNoSpace1-result.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketNoSpace1-stderr.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketNoSpace1.cmake Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketNoSpace2-result.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketNoSpace2-stderr.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketNoSpace2.cmake Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketNoSpace3-result.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketNoSpace3-stderr.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketNoSpace3.cmake Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketNoSpace4-result.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketNoSpace4-stderr.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketNoSpace4.cmake Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketNoSpace5-result.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketNoSpace5-stderr.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
BracketNoSpace5.cmake Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
CMakeLists.txt Add RunCMake.Syntax test to cover argument parsing 2013-08-08 13:26:26 -04:00
CommandComments-stderr.txt Add RunCMake.Syntax test cases for command invocation styles 2013-08-08 13:26:27 -04:00
CommandComments.cmake Add RunCMake.Syntax test cases for command invocation styles 2013-08-08 13:26:27 -04:00
CommandError0-result.txt Add RunCMake.Syntax test cases for command invocation styles 2013-08-08 13:26:27 -04:00
CommandError0-stderr.txt Add RunCMake.Syntax test cases for command invocation styles 2013-08-08 13:26:27 -04:00
CommandError0.cmake Add RunCMake.Syntax test cases for command invocation styles 2013-08-08 13:26:27 -04:00
CommandError1-result.txt Add RunCMake.Syntax test cases for command invocation styles 2013-08-08 13:26:27 -04:00
CommandError1-stderr.txt Add RunCMake.Syntax test cases for command invocation styles 2013-08-08 13:26:27 -04:00
CommandError1.cmake Add RunCMake.Syntax test cases for command invocation styles 2013-08-08 13:26:27 -04:00
CommandError2-result.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
CommandError2-stderr.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
CommandError2.cmake Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
CommandNewlines-stderr.txt Add RunCMake.Syntax test cases for command invocation styles 2013-08-08 13:26:27 -04:00
CommandNewlines.cmake Add RunCMake.Syntax test cases for command invocation styles 2013-08-08 13:26:27 -04:00
CommandSpaces-stderr.txt Add RunCMake.Syntax test cases for command invocation styles 2013-08-08 13:26:27 -04:00
CommandSpaces.cmake Add RunCMake.Syntax test cases for command invocation styles 2013-08-08 13:26:27 -04:00
CommandTabs-stderr.txt Add RunCMake.Syntax test cases for command invocation styles 2013-08-08 13:26:27 -04:00
CommandTabs.cmake Add RunCMake.Syntax test cases for command invocation styles 2013-08-08 13:26:27 -04:00
OneLetter-stderr.txt cmListFileLexer: Allow command names with one letter (#14181) 2013-10-17 09:06:59 -04:00
OneLetter.cmake cmListFileLexer: Allow command names with one letter (#14181) 2013-10-17 09:06:59 -04:00
ParenNoSpace0-stdout.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
ParenNoSpace0.cmake Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
ParenNoSpace1-result.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
ParenNoSpace1-stderr.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
ParenNoSpace1.cmake Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
ParenNoSpace2-stderr.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
ParenNoSpace2-stdout.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
ParenNoSpace2.cmake Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
RunCMakeTest.cmake Add \-continuation to CMake language quoted arguments 2013-10-23 09:02:07 -04:00
String0-stderr.txt Add RunCMake.Syntax test to cover argument parsing 2013-08-08 13:26:26 -04:00
String0.cmake Add RunCMake.Syntax test to cover argument parsing 2013-08-08 13:26:26 -04:00
String1-stderr.txt Add RunCMake.Syntax test to cover argument parsing 2013-08-08 13:26:26 -04:00
String1.cmake Add RunCMake.Syntax test to cover argument parsing 2013-08-08 13:26:26 -04:00
StringBackslash-result.txt Add \-continuation to CMake language quoted arguments 2013-10-23 09:02:07 -04:00
StringBackslash-stderr.txt Add \-continuation to CMake language quoted arguments 2013-10-23 09:02:07 -04:00
StringBackslash.cmake Add \-continuation to CMake language quoted arguments 2013-10-23 09:02:07 -04:00
StringCRLF-stderr.txt cmListFileLexer: Convert CRLF -> LF newlines explicitly 2013-10-17 09:07:00 -04:00
StringCRLF.cmake cmListFileLexer: Convert CRLF -> LF newlines explicitly 2013-10-17 09:07:00 -04:00
StringContinuation1-result.txt Add \-continuation to CMake language quoted arguments 2013-10-23 09:02:07 -04:00
StringContinuation1-stderr.txt Add \-continuation to CMake language quoted arguments 2013-10-23 09:02:07 -04:00
StringContinuation1.cmake Add \-continuation to CMake language quoted arguments 2013-10-23 09:02:07 -04:00
StringContinuation2-result.txt Add \-continuation to CMake language quoted arguments 2013-10-23 09:02:07 -04:00
StringContinuation2-stderr.txt Add \-continuation to CMake language quoted arguments 2013-10-23 09:02:07 -04:00
StringContinuation2.cmake Add \-continuation to CMake language quoted arguments 2013-10-23 09:02:07 -04:00
StringNoSpace-stderr.txt Warn about arguments not separated by whitespace 2013-08-08 13:26:27 -04:00
StringNoSpace.cmake Add RunCMake.Syntax test to cover argument parsing 2013-08-08 13:26:26 -04:00
Unquoted0-stderr.txt Add RunCMake.Syntax test to cover argument parsing 2013-08-08 13:26:26 -04:00
Unquoted0.cmake Add RunCMake.Syntax test to cover argument parsing 2013-08-08 13:26:26 -04:00
Unquoted1-stderr.txt Add RunCMake.Syntax test to cover argument parsing 2013-08-08 13:26:26 -04:00
Unquoted1.cmake Add RunCMake.Syntax test to cover argument parsing 2013-08-08 13:26:26 -04:00
UnterminatedBracket0-result.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
UnterminatedBracket0-stderr.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
UnterminatedBracket0.cmake Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
UnterminatedBracket1-result.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
UnterminatedBracket1-stderr.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
UnterminatedBracket1.cmake Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
UnterminatedBracketComment-result.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
UnterminatedBracketComment-stderr.txt Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
UnterminatedBracketComment.cmake Add Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -04:00
UnterminatedCall1-result.txt Add RunCMake.Syntax test to cover argument parsing 2013-08-08 13:26:26 -04:00
UnterminatedCall1-stderr.txt Add RunCMake.Syntax test to cover argument parsing 2013-08-08 13:26:26 -04:00
UnterminatedCall1.cmake Add RunCMake.Syntax test to cover argument parsing 2013-08-08 13:26:26 -04:00
UnterminatedCall2-result.txt cmListFileLexer: Fix line number after backslash in string 2013-08-08 13:26:26 -04:00
UnterminatedCall2-stderr.txt cmListFileLexer: Fix line number after backslash in string 2013-08-08 13:26:26 -04:00
UnterminatedCall2.cmake cmListFileLexer: Fix line number after backslash in string 2013-08-08 13:26:26 -04:00
UnterminatedString-result.txt Add RunCMake.Syntax test to cover argument parsing 2013-08-08 13:26:26 -04:00
UnterminatedString-stderr.txt Add RunCMake.Syntax test to cover argument parsing 2013-08-08 13:26:26 -04:00
UnterminatedString.cmake Add RunCMake.Syntax test to cover argument parsing 2013-08-08 13:26:26 -04:00