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:
parent
835db855c6
commit
aefab5110b
@ -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);
|
||||
|
||||
%%
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user