CMake/Tests/RunCMake/Syntax
Brad King daa0f6f98d Add Lua-style long brackets and long comments to CMake language
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.
2013-10-17 09:07:00 -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 Lua-style long brackets and long comments to CMake language 2013-10-17 09:07:00 -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
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
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