comparison src/vim9compile.c @ 21385:54a304e4dc57 v8.2.1243

patch 8.2.1243: Vim9: cannot have a comment line halfway a list Commit: https://github.com/vim/vim/commit/75783bd84e42e8431e4a62dfbabc9be1a1e56901 Author: Bram Moolenaar <Bram@vim.org> Date: Sun Jul 19 14:41:58 2020 +0200 patch 8.2.1243: Vim9: cannot have a comment line halfway a list Problem: Vim9: cannot have a comment or empty line halfway a list at script level. Solution: Skip more than one line if needed.
author Bram Moolenaar <Bram@vim.org>
date Sun, 19 Jul 2020 14:45:03 +0200
parents f25d007f90ac
children 8d58cbb07a12
comparison
equal deleted inserted replaced
21384:0c7e050ddcf4 21385:54a304e4dc57
2461 } 2461 }
2462 2462
2463 /* 2463 /*
2464 * Return TRUE if "p" points at a "#" but not at "#{". 2464 * Return TRUE if "p" points at a "#" but not at "#{".
2465 */ 2465 */
2466 static int 2466 int
2467 vim9_comment_start(char_u *p) 2467 vim9_comment_start(char_u *p)
2468 { 2468 {
2469 return p[0] == '#' && p[1] != '{'; 2469 return p[0] == '#' && p[1] != '{';
2470 } 2470 }
2471 2471