mirror of
https://github.com/holub/mame
synced 2025-04-21 07:52:35 +03:00
Don't convert spaces to tabs if they are in a string literal that is split over multiple lines using line continuation (nw)
This commit is contained in:
parent
0616401e7a
commit
07e240eb3c
@ -311,7 +311,7 @@ int main(int argc, char *argv[])
|
||||
}
|
||||
|
||||
/* convert spaces to tabs, if used for indenting */
|
||||
while (spaces > 0 && (!in_multiline_comment || col < indent_multiline_comment) && (col == 0 || modified[dst-1] == 0x09))
|
||||
while (spaces > 0 && (!in_multiline_comment || col < indent_multiline_comment) && (col == 0 || modified[dst-1] == 0x09) && !in_c_string)
|
||||
{
|
||||
modified[dst++] = 0x09;
|
||||
spaces -= tab_size;
|
||||
|
Loading…
Reference in New Issue
Block a user