comparison src/vim9compile.c @ 24914:1186160ecf57 v8.2.2994

patch 8.2.2994: various code is not fully tested Commit: https://github.com/vim/vim/commit/2d6d718dde7163c971d37b8f4f1ed8f2d25de130 Author: Yegappan Lakshmanan <yegappan@yahoo.com> Date: Sun Jun 13 21:52:48 2021 +0200 patch 8.2.2994: various code is not fully tested Problem: Various code is not fully tested. Solution: Add a few more tests. (Yegappan Lakshmanan, closes https://github.com/vim/vim/issues/8378)
author Bram Moolenaar <Bram@vim.org>
date Sun, 13 Jun 2021 22:00:04 +0200
parents 99324f6b535a
children f11779c1d123
comparison
equal deleted inserted replaced
24913:de12fb675362 24914:1186160ecf57
452 p = skipwhite(name + len); 452 p = skipwhite(name + len);
453 453
454 if (name[len] == '(' || (p[0] == '-' && p[1] == '>')) 454 if (name[len] == '(' || (p[0] == '-' && p[1] == '>'))
455 { 455 {
456 // Do not check for an internal function, since it might also be a 456 // Do not check for an internal function, since it might also be a
457 // valid command, such as ":split" versuse "split()". 457 // valid command, such as ":split" versus "split()".
458 // Skip "g:" before a function name. 458 // Skip "g:" before a function name.
459 is_global = (name[0] == 'g' && name[1] == ':'); 459 is_global = (name[0] == 'g' && name[1] == ':');
460 return find_func(is_global ? name + 2 : name, is_global, cctx) != NULL; 460 return find_func(is_global ? name + 2 : name, is_global, cctx) != NULL;
461 } 461 }
462 return FALSE; 462 return FALSE;