Commit 4ed08c49 authored by Alexandre Julliard's avatar Alexandre Julliard

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

(reported by Matthew Davison).
parent 1c3054af
......@@ -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 );
......
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