mirror of
https://github.com/vim/vim.git
synced 2025-07-26 11:04:33 -04:00
patch 8.2.3185: Vim9: start of inline function found in comment line
Problem: Vim9: start of inline function found in comment line. Solution: Do not check for inline function in comment line. (closes #8589)
This commit is contained in:
parent
6106504e9e
commit
ac2cd2b08f
@ -2075,6 +2075,10 @@ def Test_expr7_lambda_block()
|
||||
})
|
||||
assert_equal(['no', 'yes', 'no'], dll)
|
||||
|
||||
# ignored_inline(0, (_) => {
|
||||
# echo 'body'
|
||||
# })
|
||||
|
||||
sandbox var Safe = (nr: number): number => {
|
||||
return nr + 7
|
||||
}
|
||||
|
@ -866,7 +866,9 @@ get_function_body(
|
||||
}
|
||||
}
|
||||
|
||||
// Check for nested inline function.
|
||||
if (nesting_def[nesting] ? *p != '#' : *p != '"')
|
||||
{
|
||||
// Not a comment line: check for nested inline function.
|
||||
end = p + STRLEN(p) - 1;
|
||||
while (end > p && VIM_ISWHITE(*end))
|
||||
--end;
|
||||
@ -889,6 +891,7 @@ get_function_body(
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Check for ":append", ":change", ":insert". Not for :def.
|
||||
p = skip_range(p, FALSE, NULL);
|
||||
|
@ -755,6 +755,8 @@ static char *(features[]) =
|
||||
|
||||
static int included_patches[] =
|
||||
{ /* Add new patch number below this line */
|
||||
/**/
|
||||
3185,
|
||||
/**/
|
||||
3184,
|
||||
/**/
|
||||
|
Loading…
x
Reference in New Issue
Block a user