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

Error msg on "Contains"; some other words don't get highlighted #1

Closed
aselker opened this issue Feb 19, 2021 · 2 comments
Closed

Error msg on "Contains"; some other words don't get highlighted #1

aselker opened this issue Feb 19, 2021 · 2 comments

Comments

@aselker
Copy link

aselker commented Feb 19, 2021

Some files that have a line where the first word is "Contains" seems to cause an error. For example, a file consisting only of "Contains word" causes this. The error happens on load and on many editing operations.

Compare: guns/vim-clojure-static#52

"Concealends" and "Oneline" don't cause errors, but also don't get highlighted.

Here's the error (copied from the editor, is there a better way to grab it?):

error caught in async handler '/home/my_username/.local/share/nvim/plugged/neovim-colorcoder/rplugin/python3/colorcoder.py:command:ColorcoderUpdate [1]'
Traceback (most recent call last):
  File "/home/my_username/.local/share/nvim/plugged/neovim-colorcoder/rplugin/python3/colorcoder.py", line 101, in update_full
    return self._update('\n'.join(buf.api.get_lines(0, -1, False)), bang)
  File "/home/my_username/.local/share/nvim/plugged/neovim-colorcoder/rplugin/python3/colorcoder.py", line 94, in _update
    .format(idx, ' '.join(wlist)))
  File "/home/my_username/.local/share/nvim/plugged/neovim-colorcoder/rplugin/python3/colorcoder.py", line 25, in __exit__
    self.vim.command(' | '.join(self.cmds))
  File "/home/my_username/.local/lib/python3.6/site-packages/pynvim/api/nvim.py", line 287, in command
    return self.request('nvim_command', string, **kwargs)
  File "/home/my_username/.local/lib/python3.6/site-packages/pynvim/api/nvim.py", line 182, in request
    res = self._session.request(name, *args, **kwargs)
  File "/home/my_username/.local/lib/python3.6/site-packages/pynvim/msgpack_rpc/session.py", line 104, in request
    raise self.error_wrapper(err)
pynvim.api.common.NvimError: Vim(syntax):E395: contains argument not accepted here
Press ENTER or type command to continue
@blahgeek
Copy link
Owner

blahgeek commented Mar 7, 2021

Thanks for your report! Can you try the current master to check if it's resolved? Thanks!

@aselker
Copy link
Author

aselker commented Mar 9, 2021

Looks like it! Thank you!

@aselker aselker closed this as completed Mar 9, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants