Preserve the spaces before an opening quote in the middle of a token

(reported by Matthew Davison).
This commit is contained in:
Alexandre Julliard 2005-07-22 18:30:53 +00:00
parent 1c3054af32
commit 4ed08c497b
1 changed files with 2 additions and 2 deletions

View File

@ -647,7 +647,7 @@ static const WCHAR *key_name_state( struct parser *parser, const WCHAR *pos )
set_state( parser, COMMENT );
return p + 1;
case '"':
push_token( parser, token_end );
push_token( parser, p );
parser->start = p + 1;
push_state( parser, KEY_NAME );
set_state( parser, QUOTES );
@ -699,7 +699,7 @@ static const WCHAR *value_name_state( struct parser *parser, const WCHAR *pos )
set_state( parser, LEADING_SPACES );
return p + 1;
case '"':
push_token( parser, token_end );
push_token( parser, p );
parser->start = p + 1;
push_state( parser, VALUE_NAME );
set_state( parser, QUOTES );