diff 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
line wrap: on
line diff
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -1944,7 +1944,7 @@ skip_type(char_u *start)
 		if (p[1] == ':')
 		    p = skip_type(skipwhite(p + 2));
 		else
-		    p = skipwhite(p + 1);
+		    ++p;
 	    }
 	}
 	else