8000 escaped curly brackets not correctly highlighted · Issue #178 · area/language-latex · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

escaped curly brackets not correctly highlighted #178

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

Open
rammmiro opened this issue Apr 9, 2018 · 1 comment
Open

escaped curly brackets not correctly highlighted #178

rammmiro opened this issue Apr 9, 2018 · 1 comment

Comments

@rammmiro
Copy link
rammmiro commented Apr 9, 2018

Steps to reproduce & Minimum working example

Crate a .tex file with the following line:

$a \in \{0,1\}^n$

Expected behaviour

Both escaped curly brackets should be highlighted.

Actual behaviour

example1

Additional information

They require additional spacing to be properly highlighted.

$a \in \{ 0,1\} ^n$

example2

I think this is not the expected behavior, particularly the space between the second bracket and the exponent seems weird to me.

Maybe I am confused and no highlighting should appear, but then it will be inconsistent, as a minus sing forces the highlighting:

$a \in \{-1,1\}^n$

example3

I hope I am not doing anything wrong and this issue to be helpful.

@Aerijo
Copy link
Collaborator
Aerijo commented Apr 9, 2018

Anybody know what this is for?

{
'captures':
'1':
'name': 'punctuation.definition.constant.math.tex'
'match': '(\\\\)([^a-zA-Z]|[A-Za-z]+)(?=\\b|\\}|\\]|\\^|\\_)'
'name': 'constant.other.general.math.tex'
}

It's the cause of the problem, but I don't even know why it's there.

https://regex101.com/r/FAsSJ5/1

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
0