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

Math Brackets Highlight #1529

Closed
toooonyy opened this issue Jul 23, 2019 · 4 comments
Closed

Math Brackets Highlight #1529

toooonyy opened this issue Jul 23, 2019 · 4 comments
Labels
grammar Issue related to the language grammar

Comments

@toooonyy
Copy link

toooonyy commented Jul 23, 2019

Describe the bug [Required]
probably related to #1430 and Bracket Pair Colorizer 2
The \left delimiter is not highlighted as in 1430's screenshot,

Expected behavior
The \left delimiter pair is highlighted.

Screenshots
Screen Shot 2019-07-23 at 13 54 48
Screen Shot 2019-07-23 at 13 52 06

Desktop [Required]:

  • OS: macOS 10.14.5
  • VS Code version: 1.36.1
  • Extension version: 7.2.0
@toooonyy toooonyy changed the title Math Brackets HIghlight Math Brackets Highlight Jul 23, 2019
@jlelong
Copy link
Collaborator

jlelong commented Jul 23, 2019

I am afraid we cannot do much about that. Anyway, note that Bracket Pair Colorizer 2 is listed as an incompatible extension, see https://github.com/James-Yu/LaTeX-Workshop/wiki/FAQ#known-incompatible-extensions

@toooonyy
Copy link
Author

toooonyy commented Jul 23, 2019

I am afraid we cannot do much about that. Anyway, note that Bracket Pair Colorizer 2 is listed as an incompatible extension, see https://github.com/James-Yu/LaTeX-Workshop/wiki/FAQ#known-incompatible-extensions

Yeah, I do read the FAQ, just wonder how @chenr12 get it works properly
1

@DRuiCHEN
Copy link

In ~/.vscode/extensions/james-yu.latex-workshop-7.2.0/syntax/syntax.json, I modify the "brackets" field to be:

	"brackets": [
		["{", "}"],
		["[", "]"],
		["(", ")"],
		["\\{", "\\}"],
		["\\left(", "\\right)"],
		["\\left[", "\\right]"],
		["\\left\\{", "\\right\\}"]
	],

I am not sure if this would bring in any incompatibility issue, but in this way Bracket Pair Colorizer 2 works just fine for me.

@toooonyy
Copy link
Author

In ``

Thx, that works.

@jlelong jlelong added the grammar Issue related to the language grammar label Nov 7, 2021
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 4, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
grammar Issue related to the language grammar
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants