Add to RunCMake.Syntax test \-escape cases

Add an Escape1 test case covering \-escape cases inside bracket, quoted,
and unquoted arguments.  Also cover comments immediately after quoted
and unquoted arguments on lines containing \# escapes.
This commit is contained in:
Brad King 2013-10-29 10:21:50 -04:00
parent 144068e270
commit 8640e52979
3 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,3 @@
^\\##\[\[#\]\]#\[\[\]\]x#\\"
\$\@\^\\; \(\)#\\"
\$\@\^; \(\)$

View File

@ -0,0 +1,3 @@
message([[\#]] \#[[ \#]] "#[[]]" x#comment
"\#\\\"\n\$\@\^\;\ \t\(\)"#comment
\#\\\"\n\$\@\^\;\ \t\(\))

View File

@ -39,6 +39,7 @@ run_cmake(BracketNoSpace2)
run_cmake(BracketNoSpace3)
run_cmake(BracketNoSpace4)
run_cmake(BracketNoSpace5)
run_cmake(Escape1)
run_cmake(ParenNoSpace0)
run_cmake(ParenNoSpace1)
run_cmake(ParenNoSpace2)