comparison src/eval.c @ 17375:6f36caf4f702 v8.1.1686

patch 8.1.1686: "*" of "*{" is recognized as multipy operator commit https://github.com/vim/vim/commit/2898ebb44cee62a70a11b44a97bdad8cc00157b1 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 14 13:41:34 2019 +0200 patch 8.1.1686: "*" of "*{" is recognized as multipy operator Problem: "*" of "*{" is recognized as multipy operator. (Yasuhiro Matsumoto) Solution: Check for the "{".
author Bram Moolenaar <Bram@vim.org>
date Sun, 14 Jul 2019 13:45:05 +0200
parents 6604ecb7a615
children cb008de2a6ec
comparison
equal deleted inserted replaced
17374:cfbd83fc1286 17375:6f36caf4f702
4264 * Repeat computing, until no '*', '/' or '%' is following. 4264 * Repeat computing, until no '*', '/' or '%' is following.
4265 */ 4265 */
4266 for (;;) 4266 for (;;)
4267 { 4267 {
4268 op = **arg; 4268 op = **arg;
4269 if (op != '*' && op != '/' && op != '%') 4269 if ((op != '*' || (*arg)[1] == '{') && op != '/' && op != '%')
4270 break; 4270 break;
4271 4271
4272 if (evaluate) 4272 if (evaluate)
4273 { 4273 {
4274 #ifdef FEAT_FLOAT 4274 #ifdef FEAT_FLOAT