diff options
author | Bram Moolenaar <Bram@vim.org> | 2020-07-29 20:00:38 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2020-07-29 20:00:38 +0200 |
commit | 1040956292a9f2c3d02fc08febd5acf349c85590 (patch) | |
tree | 9478dbc3a208ce7689737cd8ba36aac07c86689e /src/ex_docmd.c | |
parent | 7b7f78f51dc5a2c307330af0d4e53faced34726f (diff) |
patch 8.2.1322: Vim9: method on double quoted string doesn't workv8.2.1322
Problem: Vim9: method on double quoted string doesn't work.
Solution: Recognize double quoted string. (closes #6562)
Diffstat (limited to 'src/ex_docmd.c')
-rw-r--r-- | src/ex_docmd.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/ex_docmd.c b/src/ex_docmd.c index 536850edc9..ad1693b516 100644 --- a/src/ex_docmd.c +++ b/src/ex_docmd.c @@ -3277,7 +3277,7 @@ find_ex_command( char_u *pskip = (*eap->cmd == '&' || *eap->cmd == '$' || *eap->cmd == '@') ? eap->cmd + 1 : eap->cmd; - if (vim_strchr((char_u *)"{('[", *p) != NULL + if (vim_strchr((char_u *)"{('[\"", *p) != NULL || ((p = to_name_const_end(pskip)) > eap->cmd && *p != NUL)) { int oplen; @@ -3293,6 +3293,8 @@ find_ex_command( *eap->cmd == '{' // "'string'->func()" is an expression. || *eap->cmd == '\'' + // '"string"->func()' is an expression. + || *eap->cmd == '"' // "g:varname" is an expression. || eap->cmd[1] == ':' ) |