comparison src/eval.c @ 6367:81c9b19ee0fb v7.4.516

updated for version 7.4.516 Problem: Completing a function name containing a # does not work. Issue 253. Solution: Recognize the # character. (Christian Brabandt)
author Bram Moolenaar <bram@vim.org>
date Wed, 12 Nov 2014 20:09:06 +0100
parents 6ad9facba57d
children 870480df8275
comparison
equal deleted inserted replaced
6366:6ed1fb756560 6367:81c9b19ee0fb
3366 else if (c == '=') 3366 else if (c == '=')
3367 { 3367 {
3368 got_eq = TRUE; 3368 got_eq = TRUE;
3369 xp->xp_context = EXPAND_EXPRESSION; 3369 xp->xp_context = EXPAND_EXPRESSION;
3370 } 3370 }
3371 else if (c == '<' 3371 else if ((c == '<' || c == '#')
3372 && xp->xp_context == EXPAND_FUNCTIONS 3372 && xp->xp_context == EXPAND_FUNCTIONS
3373 && vim_strchr(xp->xp_pattern, '(') == NULL) 3373 && vim_strchr(xp->xp_pattern, '(') == NULL)
3374 { 3374 {
3375 /* Function name can start with "<SNR>" */ 3375 /* Function name can start with "<SNR>" and contain '#'. */
3376 break; 3376 break;
3377 } 3377 }
3378 else if (cmdidx != CMD_let || got_eq) 3378 else if (cmdidx != CMD_let || got_eq)
3379 { 3379 {
3380 if (c == '"') /* string */ 3380 if (c == '"') /* string */