Mercurial > vim
comparison src/ex_docmd.c @ 20111:f40231487a49 v8.2.0611
patch 8.2.0611: Vim9: no check for space before #comment
Commit: https://github.com/vim/vim/commit/faac410409a8d693a0326ad9db42dca85419a391
Author: Bram Moolenaar <Bram@vim.org>
Date: Mon Apr 20 17:46:14 2020 +0200
patch 8.2.0611: Vim9: no check for space before #comment
Problem: Vim9: no check for space before #comment.
Solution: Add space checks.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Mon, 20 Apr 2020 18:00:03 +0200 |
parents | 165ec447ca77 |
children | 0610f1ddb3a0 |
comparison
equal
deleted
inserted
replaced
20110:e24fd2902727 | 20111:f40231487a49 |
---|---|
7901 { | 7901 { |
7902 *p++ = NUL; | 7902 *p++ = NUL; |
7903 p = skipwhite(p); | 7903 p = skipwhite(p); |
7904 | 7904 |
7905 // Check for trailing illegal characters | 7905 // Check for trailing illegal characters |
7906 if (!ends_excmd(*p)) | 7906 if (!ends_excmd2(eap->arg, p)) |
7907 eap->errmsg = e_trailing; | 7907 eap->errmsg = e_trailing; |
7908 else | 7908 else |
7909 eap->nextcmd = check_nextcmd(p); | 7909 eap->nextcmd = check_nextcmd(p); |
7910 } | 7910 } |
7911 } | 7911 } |