Commit ee438f11 authored by Adam Knapp's avatar Adam Knapp

Custom encoding name with spaces (issue #563)

Signed-off-by: Adam Knapp's avatarAdam Knapp <adam.knapp@ericsson.com>
parent e6e03f6f
......@@ -72,6 +72,7 @@ LINECOMMENT "//"[^\r\n]*
WHITESPACE [ \t\v\f]
NEWLINE \r|\n|\r\n
IDENTIFIER [A-Za-z][A-Za-z0-9_]*
IDENTIFIER2 [A-Za-z][A-Za-z0-9_ ]*
NUMBER 0|[1-9][0-9]*
%s SC_start
......@@ -231,7 +232,7 @@ verdicttype RETURN(VerdictTypeKeyword);
yylval.encoding_type = Type::CT_OER;
RETURN(EncodingType);
}
{IDENTIFIER} {
{IDENTIFIER2} {
yylval.str = new string(yyleng, yytext);
RETURN(CustomEncoding);
}
......
......@@ -314,7 +314,7 @@ with {
}
}
<END_MODULE>
<RESULT IF_PASS COUNT 7>
<RESULT IF_PASS COUNT 8>
(?is)\berror:
<END_RESULT>
<RESULT IF_PASS POSITIVE>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment