diff --git a/src/app/CFGFileParser.cpp b/src/app/CFGFileParser.cpp index 6241583..7f1b4f0 100644 --- a/src/app/CFGFileParser.cpp +++ b/src/app/CFGFileParser.cpp @@ -35,7 +35,7 @@ void *CFGFileParser::parseFile() if(parsedParameter == NULL) _state = ERROR; //printf("%c",readChar); - } + }//Add case when we start with a single quote (allowed and not an error) else _state = ERROR; break; @@ -138,7 +138,8 @@ void *CFGFileParser::parseFile() case SEPARATION: _type = VALUE; if(readChar == '\'')_state = OPENING_QUOTE; - else _state = PARAM_SECTION; + //Add the usual verification (readChar >= 65 && readChar <= 90) || (readChar >= 97 && readChar <= 122) || (readChar >= 48 && readChar <= 57) + else _state = PARAM_SECTION; //Should be an error break; case ERROR: dictioRef->dispose();