Add fix by Olaf to handle CRLF style text files as well

git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1390 c6295689-39f2-0310-b995-f0e70906c6a9
This commit is contained in:
aet 2003-08-25 09:29:42 +00:00
parent 835db855c6
commit aefab5110b
1 changed files with 4 additions and 4 deletions

View File

@ -36,17 +36,17 @@ static scconf_parser *parser;
%%
"#"[^\n]* scconf_parse_token(parser, TOKEN_TYPE_COMMENT, yytext);
"#"[^\r\n]* scconf_parse_token(parser, TOKEN_TYPE_COMMENT, yytext);
\n scconf_parse_token(parser, TOKEN_TYPE_NEWLINE, NULL);
[ \t]+ /* eat up whitespace */
[ \t\r]+ /* eat up whitespace */
[,{}=;] scconf_parse_token(parser, TOKEN_TYPE_PUNCT, yytext);
\"[^\"\n]*[\"\n] scconf_parse_token(parser, TOKEN_TYPE_STRING, yytext);
\"[^\"\n\r]*\r*[\"\n] scconf_parse_token(parser, TOKEN_TYPE_STRING, yytext);
[^;, \t\n]+ scconf_parse_token(parser, TOKEN_TYPE_STRING, yytext);
[^;, \t\r\n]+ scconf_parse_token(parser, TOKEN_TYPE_STRING, yytext);
%%