mirror of
https://github.com/fish-shell/fish-shell.git
synced 2024-11-23 01:36:39 +08:00
Allow backslash-escaping of newlines
darcs-hash:20060217164119-ac50b-6efd2491fb7f504ad26ca35b2a7421d24c61ec63.gz
This commit is contained in:
parent
9cd2dbc9e7
commit
8ac1688c89
18
tokenizer.c
18
tokenizer.c
|
@ -507,8 +507,22 @@ void tok_next( tokenizer *tok )
|
|||
return;
|
||||
}
|
||||
|
||||
while( my_iswspace(*(tok->buff) ) )
|
||||
tok->buff++;
|
||||
while( 1 )
|
||||
{
|
||||
if( my_iswspace(*(tok->buff) ) )
|
||||
{
|
||||
tok->buff++;
|
||||
}
|
||||
else
|
||||
{
|
||||
if(( *(tok->buff) == L'\\') &&( *(tok->buff+1) == L'\n') )
|
||||
{
|
||||
tok->buff+=2;
|
||||
}
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if( *tok->buff == L'#')
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue
Block a user