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

left bracket impact not "closed" with a right bracket #849

Open
exl022 opened this issue May 16, 2024 · 0 comments
Open

left bracket impact not "closed" with a right bracket #849

exl022 opened this issue May 16, 2024 · 0 comments

Comments

@exl022
Copy link

exl022 commented May 16, 2024

Does this bug happen when you install plugin without vim-polyglot?

Describe the bug:
I'm trying to use polyglot for vim syntax highlighting for markdown files. (.md). When I use it, I notice that the square brackets seem to be behaving in an odd way. When I open a left bracket, the rest of my text following is highlighted, but when I close it with the right bracket, the brackets are highlighted two different colors, and the following text remains highlighted as if I didn't put in the right bracket. This only happens with squared brackets, not parens nor braces.

This is what I see before I have bracketed content:
image

And if I insert "[asdf]", every that follows is marked incorrectly, like this:

image

note, when you look at the [asdf], the bracket for the left and the right are two different colors.

This makes it hard to see anything when there are any elements where I need to use square brackets. Any guidance on how to make syntax with bracketing work here?

edit
I figured out a little more here. If you have something in brackets followed by something in parens , e.g., foo, then everything is fine. But if you have just brackets, [foo], or brackets followed by something with braces [foo]{bar}, then it doesn't work properly. This is an issue, if you are going to put some embedded LaTex in the .md file.

I'm using macvim r179 and Vim 9.1.0.
To Reproduce:

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

1 participant