Mercurial > vim
comparison src/eval.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 | a64c16ff98b8 |
children | 831b1ea43020 |
comparison
equal
deleted
inserted
replaced
20110:e24fd2902727 | 20111:f40231487a49 |
---|---|
1771 int did_emsg_before = did_emsg; | 1771 int did_emsg_before = did_emsg; |
1772 int called_emsg_before = called_emsg; | 1772 int called_emsg_before = called_emsg; |
1773 | 1773 |
1774 p = skipwhite(arg); | 1774 p = skipwhite(arg); |
1775 ret = eval1(&p, rettv, evaluate); | 1775 ret = eval1(&p, rettv, evaluate); |
1776 if (ret == FAIL || !ends_excmd(*p)) | 1776 if (ret == FAIL || !ends_excmd2(arg, p)) |
1777 { | 1777 { |
1778 if (ret != FAIL) | 1778 if (ret != FAIL) |
1779 clear_tv(rettv); | 1779 clear_tv(rettv); |
1780 /* | 1780 /* |
1781 * Report the invalid expression unless the expression evaluation has | 1781 * Report the invalid expression unless the expression evaluation has |