comparison src/userfunc.c @ 23340:8e0d6f355a5a v8.2.2213

patch 8.2.2213: checking white space around -> is not backwards compatible Commit: https://github.com/vim/vim/commit/7cfcd0c99c485a973d8cbff939531e430ad77f55 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Dec 25 16:11:53 2020 +0100 patch 8.2.2213: checking white space around -> is not backwards compatible Problem: Checking white space around -> is not backwards compatible. Solution: Only check white space around =>.
author Bram Moolenaar <Bram@vim.org>
date Fri, 25 Dec 2020 16:15:03 +0100
parents 9c5275b1c763
children 611e19cd237d
comparison
equal deleted inserted replaced
23339:8dd52102986c 23340:8e0d6f355a5a
568 ret = get_function_args(arg, equal_arrow ? ')' : '-', pnewargs, 568 ret = get_function_args(arg, equal_arrow ? ')' : '-', pnewargs,
569 types_optional ? &argtypes : NULL, types_optional, 569 types_optional ? &argtypes : NULL, types_optional,
570 &varargs, NULL, FALSE, NULL, NULL); 570 &varargs, NULL, FALSE, NULL, NULL);
571 if (ret == FAIL 571 if (ret == FAIL
572 || (s = skip_arrow(*arg, equal_arrow, &ret_type, 572 || (s = skip_arrow(*arg, equal_arrow, &ret_type,
573 &white_error)) == NULL) 573 equal_arrow ? &white_error : NULL)) == NULL)
574 { 574 {
575 if (types_optional) 575 if (types_optional)
576 ga_clear_strings(&argtypes); 576 ga_clear_strings(&argtypes);
577 return white_error ? FAIL : NOTDONE; 577 return white_error ? FAIL : NOTDONE;
578 } 578 }