-
Notifications
You must be signed in to change notification settings - Fork 591
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[LaTeX] Refactor LaTeX log file syntax
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.
- Loading branch information
Showing
3 changed files
with
313 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<plist version="1.0"> | ||
<dict> | ||
<key>scope</key> | ||
<string>text.log.latex</string> | ||
<key>settings</key> | ||
<dict> | ||
<key>indentationFoldingEnabled</key> | ||
<false/> | ||
<key>foldScopes</key> | ||
<array> | ||
<dict> | ||
<key>begin</key> | ||
<string>punctuation.section.block.begin</string> | ||
<key>end</key> | ||
<string>punctuation.section.block.end</string> | ||
<key>excludeTrailingNewlines</key> | ||
<false/> | ||
</dict> | ||
<dict> | ||
<key>begin</key> | ||
<string>punctuation.section.group.begin</string> | ||
<key>end</key> | ||
<string>punctuation.section.group.end</string> | ||
<key>excludeTrailingNewlines</key> | ||
<false/> | ||
</dict> | ||
</array> | ||
</dict> | ||
</dict> | ||
</plist> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.