comparison src/vim9compile.c @ 21467:49072a858baf v8.2.1284

patch 8.2.1284: Vim9: skipping over type includes following white space Commit: https://github.com/vim/vim/commit/bfba8651a51b66fdc52848f32c77aa925586e250 Author: Bram Moolenaar <Bram@vim.org> Date: Thu Jul 23 20:09:10 2020 +0200 patch 8.2.1284: Vim9: skipping over type includes following white space Problem: Vim9: skipping over type includes following white space, leading to an error for missing white space. Solution: Do not skip over white space after the type.
author Bram Moolenaar <Bram@vim.org>
date Thu, 23 Jul 2020 20:15:04 +0200
parents b5d4ab124782
children 4d156aead799
comparison
equal deleted inserted replaced
21466:f5f1759ddcf4 21467:49072a858baf
1942 if (*p == ')') 1942 if (*p == ')')
1943 { 1943 {
1944 if (p[1] == ':') 1944 if (p[1] == ':')
1945 p = skip_type(skipwhite(p + 2)); 1945 p = skip_type(skipwhite(p + 2));
1946 else 1946 else
1947 p = skipwhite(p + 1); 1947 ++p;
1948 } 1948 }
1949 } 1949 }
1950 else 1950 else
1951 { 1951 {
1952 // handle func: return_type 1952 // handle func: return_type