You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
And if I insert "[asdf]", every that follows is marked incorrectly, like this:
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:
The text was updated successfully, but these errors were encountered:
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:
And if I insert "[asdf]", every that follows is marked incorrectly, like this:
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:
The text was updated successfully, but these errors were encountered: