summaryrefslogtreecommitdiffstats
path: root/Source/cmListFileLexer.h
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2013-02-17 01:41:47 (GMT)
committerBrad King <brad.king@kitware.com>2013-08-08 17:26:27 (GMT)
commit58e524165d44e672e391cca261d9f7dd723d2c70 (patch)
treec1d02fa92e6437232a97e487afc4b04d361f162e /Source/cmListFileLexer.h
parente75b69f55bcdc6ee524dfd0cab568644379fbacb (diff)
downloadCMake-58e524165d44e672e391cca261d9f7dd723d2c70.zip
CMake-58e524165d44e672e391cca261d9f7dd723d2c70.tar.gz
CMake-58e524165d44e672e391cca261d9f7dd723d2c70.tar.bz2
Warn about arguments not separated by whitespace
Teach the lexer to return tokens for whitespace. Teach the parser to tolerate the space tokens where whitespace is allowed. Also teach the parser to diagnose and warn about cases of quoted arguments followed immediately by another argument. This was accidentally allowed previously, so we only warn. Update the RunCMake.Syntax test case StringNoSpace expected stderr to include the warnings.
Diffstat (limited to 'Source/cmListFileLexer.h')
-rw-r--r--Source/cmListFileLexer.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/Source/cmListFileLexer.h b/Source/cmListFileLexer.h
index 5f4db33..cc78b5c 100644
--- a/Source/cmListFileLexer.h
+++ b/Source/cmListFileLexer.h
@@ -15,6 +15,7 @@
typedef enum cmListFileLexer_Type_e
{
cmListFileLexer_Token_None,
+ cmListFileLexer_Token_Space,
cmListFileLexer_Token_Newline,
cmListFileLexer_Token_Identifier,
cmListFileLexer_Token_ParenLeft,