Mercurial > vim
comparison src/ex_docmd.c @ 23884:00e904bdb8a5 v8.2.2484
patch 8.2.2484: Vim9: Cannot use a comment starting with #{
Commit: https://github.com/vim/vim/commit/dee37dc733df444df1950eb922a35560e4b113d6
Author: Bram Moolenaar <Bram@vim.org>
Date: Sun Feb 7 16:40:05 2021 +0100
patch 8.2.2484: Vim9: Cannot use a comment starting with #{
Problem: Vim9: Cannot use a comment starting with #{ after an expression.
Solution: Remove the check for "{" since #{ dictionaries are not supported.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Sun, 07 Feb 2021 16:45:04 +0100 |
parents | a7098bc3810e |
children | 2a885d095bff |
comparison
equal
deleted
inserted
replaced
23883:2d3c3106eb98 | 23884:00e904bdb8a5 |
---|---|
5210 | 5210 |
5211 if (c == NUL || c == '|' || c == '\n') | 5211 if (c == NUL || c == '|' || c == '\n') |
5212 return TRUE; | 5212 return TRUE; |
5213 #ifdef FEAT_EVAL | 5213 #ifdef FEAT_EVAL |
5214 if (in_vim9script()) | 5214 if (in_vim9script()) |
5215 return c == '#' && cmd[1] != '{' | 5215 return c == '#' && (cmd == cmd_start || VIM_ISWHITE(cmd[-1])); |
5216 && (cmd == cmd_start || VIM_ISWHITE(cmd[-1])); | |
5217 #endif | 5216 #endif |
5218 return c == '"'; | 5217 return c == '"'; |
5219 } | 5218 } |
5220 | 5219 |
5221 #if defined(FEAT_SYN_HL) || defined(FEAT_SEARCH_EXTRA) || defined(FEAT_EVAL) \ | 5220 #if defined(FEAT_SYN_HL) || defined(FEAT_SEARCH_EXTRA) || defined(FEAT_EVAL) \ |