mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-27 14:39:09 +08:00
* app.c (do_scrub_next_char): If LEX_IS_STRINGQUOTE or
LEX_IS_ONECHAR_QUOTE is seen in state 10, preserve one space.
This commit is contained in:
18
gas/app.c
18
gas/app.c
@ -564,7 +564,14 @@ recycle:
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case LEX_IS_STRINGQUOTE:
|
case LEX_IS_STRINGQUOTE:
|
||||||
if (state == 9 || state == 10)
|
if (state == 10)
|
||||||
|
{
|
||||||
|
/* Preserve the whitespace in foo "bar" */
|
||||||
|
(*unget) (ch);
|
||||||
|
state = 3;
|
||||||
|
return ' ';
|
||||||
|
}
|
||||||
|
else if (state == 9)
|
||||||
old_state = 3;
|
old_state = 3;
|
||||||
else
|
else
|
||||||
old_state = state;
|
old_state = state;
|
||||||
@ -572,6 +579,13 @@ recycle:
|
|||||||
return ch;
|
return ch;
|
||||||
#ifndef IEEE_STYLE
|
#ifndef IEEE_STYLE
|
||||||
case LEX_IS_ONECHAR_QUOTE:
|
case LEX_IS_ONECHAR_QUOTE:
|
||||||
|
if (state == 10)
|
||||||
|
{
|
||||||
|
/* Preserve the whitespace in foo 'b' */
|
||||||
|
(*unget) (ch);
|
||||||
|
state = 3;
|
||||||
|
return ' ';
|
||||||
|
}
|
||||||
ch = GET ();
|
ch = GET ();
|
||||||
if (ch == EOF)
|
if (ch == EOF)
|
||||||
{
|
{
|
||||||
@ -599,7 +613,7 @@ recycle:
|
|||||||
{
|
{
|
||||||
return out_buf[0];
|
return out_buf[0];
|
||||||
}
|
}
|
||||||
if (state == 9 || state == 10)
|
if (state == 9)
|
||||||
old_state = 3;
|
old_state = 3;
|
||||||
else
|
else
|
||||||
old_state = state;
|
old_state = state;
|
||||||
|
Reference in New Issue
Block a user