-
Notifications
You must be signed in to change notification settings - Fork 591
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
[LaTeX] Refactor LaTeX log file syntax #4136
base: master
Are you sure you want to change the base?
Conversation
This commit refactors logfile syntax based on real world latex log files. 1. It adds block and group contexts to enable syntax based folding. 2. Adjusts various other scopes Note: Logfiles are wrapped at 80chars, which can't be handled by ST's syntax engine, possibly causing smaller highlighting issues. Nevertheless it now looks way better than before.
05cc6d5
to
cb3e58c
Compare
angle-bracket-string-content: | ||
- meta_scope: string.unquoted.other.filename.log.latex | ||
single-angled-string-body: | ||
- meta_scope: string.quoted.other.log |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Angled?
https://www.thesaurus.com/e/grammar/angle-brackets/
Due to single-/double- requirement I shorted the rest a bit.
push: single-quoted-string-body | ||
|
||
double-angled-string-body: | ||
- meta_scope: string.quoted.other.log |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo?
This PR refactors logfile syntax based on real world latex log files.
Note:
Logfiles are wrapped at 80chars, which can't be handled by ST's syntax engine, possibly causing smaller highlighting issues. Nevertheless it now looks way better than before.