Skip to content
Snippets Groups Projects
Commit ee438f11 authored by Adam Knapp's avatar Adam Knapp
Browse files

Custom encoding name with spaces (issue #563)


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