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

Incorrect match for punctuation.definition.string.begin.latex #66

Closed
gpoore opened this issue Sep 7, 2023 · 0 comments
Closed

Incorrect match for punctuation.definition.string.begin.latex #66

gpoore opened this issue Sep 7, 2023 · 0 comments

Comments

@gpoore
Copy link

gpoore commented Sep 7, 2023

In LaTeX.tmLanguage.json, the token punctuation.definition.string.begin.latex currently has the begin pattern (?<!\\\\)(\\`\\`). I suggest extending the negative lookbehind to eliminate incorrect matches. I just encountered \catcode`` , and \string`` would be similar. A begin pattern like (?<!\\\\|\\\\catcode|\\\\string)(\\`\\`) would be better. There may be other situations that could cause an incorrect match, but I expect that this modification would cover most common cases.

@jlelong jlelong closed this as completed in 8f0cef2 Sep 8, 2023
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Oct 9, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant