Mercurial > vim
comparison src/eval.c @ 6438:1fd9f1d43660 v7.4.549
updated for version 7.4.549
Problem: Function name not recognized correctly when inside a function.
Solution: Don't check for an alpha character.
author | Bram Moolenaar <bram@vim.org> |
---|---|
date | Sat, 13 Dec 2014 21:00:55 +0100 |
parents | 9fbb9c60ab41 |
children | 45ff9dd354ea |
comparison
equal
deleted
inserted
replaced
6437:520b9b2df2d8 | 6438:1fd9f1d43660 |
---|---|
22281 if (checkforcmd(&p, "function", 2)) | 22281 if (checkforcmd(&p, "function", 2)) |
22282 { | 22282 { |
22283 if (*p == '!') | 22283 if (*p == '!') |
22284 p = skipwhite(p + 1); | 22284 p = skipwhite(p + 1); |
22285 p += eval_fname_script(p); | 22285 p += eval_fname_script(p); |
22286 if (ASCII_ISALPHA(*p)) | 22286 vim_free(trans_function_name(&p, TRUE, 0, NULL)); |
22287 if (*skipwhite(p) == '(') | |
22287 { | 22288 { |
22288 vim_free(trans_function_name(&p, TRUE, 0, NULL)); | 22289 ++nesting; |
22289 if (*skipwhite(p) == '(') | 22290 indent += 2; |
22290 { | |
22291 ++nesting; | |
22292 indent += 2; | |
22293 } | |
22294 } | 22291 } |
22295 } | 22292 } |
22296 | 22293 |
22297 /* Check for ":append" or ":insert". */ | 22294 /* Check for ":append" or ":insert". */ |
22298 p = skip_range(p, NULL); | 22295 p = skip_range(p, NULL); |