Mercurial > vim
comparison src/vim9compile.c @ 22260:d7c1e3efa88e v8.2.1679
patch 8.2.1679: Vim9: ":*" is not recognized as a range
Commit: https://github.com/vim/vim/commit/3bd8de40b484d3617a19092d3cc036f8b4f3d51c
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Sep 14 16:37:34 2020 +0200
patch 8.2.1679: Vim9: ":*" is not recognized as a range
Problem: Vim9: ":*" is not recognized as a range.
Solution: Move recognizing "*" into skip_range(). (closes https://github.com/vim/vim/issues/6838)
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 14 Sep 2020 16:45:04 +0200 |
parents | 3d0632b260fd |
children | 23f5750146d9 |
comparison
equal
deleted
inserted
replaced
22259:70b887aaedf1 | 22260:d7c1e3efa88e |
---|---|
4274 emsg(_(e_returning_value_in_function_without_return_type)); | 4274 emsg(_(e_returning_value_in_function_without_return_type)); |
4275 return NULL; | 4275 return NULL; |
4276 } | 4276 } |
4277 if (need_type(stack_type, cctx->ctx_ufunc->uf_ret_type, -1, | 4277 if (need_type(stack_type, cctx->ctx_ufunc->uf_ret_type, -1, |
4278 cctx, FALSE) == FAIL) | 4278 cctx, FALSE) == FAIL) |
4279 return NULL; | 4279 return NULL; |
4280 } | 4280 } |
4281 } | 4281 } |
4282 else | 4282 else |
4283 { | 4283 { |
4284 // "set_return_type" cannot be TRUE, only used for a lambda which | 4284 // "set_return_type" cannot be TRUE, only used for a lambda which |
6828 * 'text'->func() should not be confused with 'a mark | 6828 * 'text'->func() should not be confused with 'a mark |
6829 */ | 6829 */ |
6830 cmd = ea.cmd; | 6830 cmd = ea.cmd; |
6831 if (*cmd != '\'' || starts_with_colon) | 6831 if (*cmd != '\'' || starts_with_colon) |
6832 { | 6832 { |
6833 ea.cmd = skip_range(ea.cmd, NULL); | 6833 ea.cmd = skip_range(ea.cmd, TRUE, NULL); |
6834 if (ea.cmd > cmd) | 6834 if (ea.cmd > cmd) |
6835 { | 6835 { |
6836 if (!starts_with_colon) | 6836 if (!starts_with_colon) |
6837 { | 6837 { |
6838 emsg(_(e_colon_required_before_a_range)); | 6838 emsg(_(e_colon_required_before_a_range)); |