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

Opening environment inside command definition breaks highlighting #168

Open
1 task done
MrQubo opened this issue Jan 26, 2018 · 2 comments
Open
1 task done

Opening environment inside command definition breaks highlighting #168

MrQubo opened this issue Jan 26, 2018 · 2 comments

Comments

@MrQubo
Copy link

MrQubo commented Jan 26, 2018

Prerequisites

  • Put an X in this box if you have done the following:
    • Ensured the issue has not already been raised
    • Ensured the issue is caused by this package
    • Run atom --safe, activated this package, and the issue persisted

Description

Highlighting gets broken when \begin and \end are used inside command definitions.

Minimum working example

\newcommand{\leqn}{\begin{equation}}
\newcommand{\reqn}{\end{equation}}
@Aerijo
Copy link
Collaborator

Aerijo commented Jan 26, 2018

Seems kind of unavoidable, but I’m thinking a similar solution to the one I suggest in #155. This way, any bad highlighting would (hopefully) be confined to the group.

@yudai-nkt
Copy link
Collaborator

Your MWE is not recommended. See the comment section of this question on TeX.SX for example.

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

3 participants