Content-Length: 248160 | pFad | https://github.com/vim/vim/issues/11534

3F E15: Invalid expression ""foo" ==? "foo"" in "if ... elseif ..." · Issue #11534 · vim/vim · GitHub
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

E15: Invalid expression ""foo" ==? "foo"" in "if ... elseif ..." #11534

Closed
xvim64 opened this issue Nov 12, 2022 · 3 comments
Closed

E15: Invalid expression ""foo" ==? "foo"" in "if ... elseif ..." #11534

xvim64 opened this issue Nov 12, 2022 · 3 comments
Labels

Comments

@xvim64
Copy link

xvim64 commented Nov 12, 2022

Steps to reproduce

  1. gvim.exe --clean t.vim
  2. :set gfn=consolas:h20
  3. input "if ... elseif ..."
if "foo" ==? "foo"
    echo "first"
elseif "foo" ==? "foo"
    echo "second"
endif
  1. :w
  2. :so %

Why is 'elseif "foo" ==? "foo"' the invalid expression?

1
2
3
4

Expected behaviour

No E15 message

Version of Vim

9.0.0861

Environment

Windows 10 64bit

Logs and stack traces

No response

@xvim64 xvim64 added the bug label Nov 12, 2022
@brammool
Copy link
Contributor

Steps to reproduce must be text, not screenshots.

@xvim64
Copy link
Author

xvim64 commented Nov 12, 2022

Steps to reproduce must be text, not screenshots.

Added text of 'Steps to reproduce'

@brammool
Copy link
Contributor

Thanks, now I can copy/paste and try it out. I'll make a patch to fix it.

zeertzjq added a commit to zeertzjq/neovim that referenced this issue Nov 12, 2022
Problem:    Bogus error when string used after :elseif.
Solution:   Do not consider a double quote the start of a comment.
            (closes vim/vim#11534)

vim/vim@28c56d5

Co-authored-by: Bram Moolenaar <Bram@vim.org>
yesean pushed a commit to yesean/neovim that referenced this issue Mar 25, 2023
Problem:    Bogus error when string used after :elseif.
Solution:   Do not consider a double quote the start of a comment.
            (closes vim/vim#11534)

vim/vim@28c56d5

Co-authored-by: Bram Moolenaar <Bram@vim.org>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: https://github.com/vim/vim/issues/11534

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy