Mercurial > vim
comparison src/vim9compile.c @ 19848:36d629aa3d6e v8.2.0480
patch 8.2.0480: Vim9: some code is not tested
Commit: https://github.com/vim/vim/commit/0b37a2f379f36d097e7fa90a3e86da6a29ed2aaa
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Mar 29 21:38:15 2020 +0200
patch 8.2.0480: Vim9: some code is not tested
Problem: Vim9: some code is not tested.
Solution: Add more tests.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 29 Mar 2020 21:45:03 +0200 |
parents | 6500dcaf8e1a |
children | eddc81783052 |
comparison
equal
deleted
inserted
replaced
19847:8176228268cb | 19848:36d629aa3d6e |
---|---|
2620 return FAIL; | 2620 return FAIL; |
2621 } | 2621 } |
2622 else | 2622 else |
2623 { | 2623 { |
2624 // method call: list->method() | 2624 // method call: list->method() |
2625 for (p = *arg; eval_isnamec1(*p); ++p) | 2625 p = *arg; |
2626 if (ASCII_ISALPHA(*p) && p[1] == ':') | |
2627 p += 2; | |
2628 for ( ; eval_isnamec1(*p); ++p) | |
2626 ; | 2629 ; |
2627 if (*p != '(') | 2630 if (*p != '(') |
2628 { | 2631 { |
2629 semsg(_(e_missing_paren), arg); | 2632 semsg(_(e_missing_paren), *arg); |
2630 return FAIL; | 2633 return FAIL; |
2631 } | 2634 } |
2632 // TODO: base value may not be the first argument | 2635 // TODO: base value may not be the first argument |
2633 if (compile_call(arg, p - *arg, cctx, 1) == FAIL) | 2636 if (compile_call(arg, p - *arg, cctx, 1) == FAIL) |
2634 return FAIL; | 2637 return FAIL; |