mirror of
https://github.com/fish-shell/fish-shell.git
synced 2026-05-25 06:41:15 -03:00
Update style and formatting to conform to fish style guide.
This commit is contained in:
@@ -122,7 +122,7 @@ RESOLVE(statement)
|
||||
If we are 'function', then we are a non-block if we are invoked with -h or --help
|
||||
If we are anything else, we require an argument, so do the same thing if the subsequent token is a statement terminator.
|
||||
*/
|
||||
|
||||
|
||||
if (token1.type == parse_token_type_string)
|
||||
{
|
||||
// If we are a function, then look for help arguments
|
||||
@@ -135,14 +135,14 @@ RESOLVE(statement)
|
||||
{
|
||||
return 4;
|
||||
}
|
||||
|
||||
|
||||
// Likewise if the next token doesn't look like an argument at all. This corresponds to e.g. a "naked if".
|
||||
bool naked_invocation_invokes_help = (token1.keyword != parse_keyword_begin && token1.keyword != parse_keyword_end);
|
||||
if (naked_invocation_invokes_help && (token2.type == parse_token_type_end || token2.type == parse_token_type_terminate))
|
||||
{
|
||||
return 4;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
switch (token1.type)
|
||||
@@ -369,7 +369,7 @@ RESOLVE(decorated_statement)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
switch (token1.keyword)
|
||||
{
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user