Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Quoted rhs in <expr> mappings are highlighted as comments #13

Closed
gpanders opened this issue Aug 16, 2021 · 6 comments
Closed

Quoted rhs in <expr> mappings are highlighted as comments #13

gpanders opened this issue Aug 16, 2021 · 6 comments

Comments

@gpanders
Copy link

In the following mapping

nnoremap <expr> [a ":\<C-U>" . v:count1 . "prev\<CR>"

the right-hand side is incorrectly parsed as a comment.

@vigoux
Copy link
Owner

vigoux commented Aug 16, 2021

Thanks for reporting !

I am looking into that right now.

@gpanders
Copy link
Author

Thanks! I am looking into it too, but I am very much a tree-sitter noob so it seems likely you will figure it out before I do :)

@vigoux
Copy link
Owner

vigoux commented Aug 16, 2021

To be honest, I think that the first thing would be to add basic support for map commands

@vigoux
Copy link
Owner

vigoux commented Aug 16, 2021

Then go incrementally from here

@vigoux
Copy link
Owner

vigoux commented Aug 16, 2021

So, very basic support should have been adding in ee58a76 already.
Now we need to add everything that surrounds the mappings:

  • Options (like <expr>)
  • Keycodes (<CR> in the sides)
  • And all the variants (will be boring AF)

vigoux added a commit that referenced this issue Aug 17, 2021
Proves that the issue is partly fixed.
@vigoux
Copy link
Owner

vigoux commented Aug 17, 2021

This should have been fixed in the latest commit, closing.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants