This is a personal repository for languages I have that override the sublime default ones. Though this repository wasn't meant for public use, all are welcome to use anything found here. You can file issues if you want, but since I don't view this as a supported repo, I will pick and choose what to fix when I feel like it.
When using these languages, you can disable the default version of the languages in the Preferences.sublime-settings.
Example:
"ignored_packages":
[
"Python",
"Batch File",
"JavaScript",
"Perl",
"C++",
"PHP",
"Markdown"
],
- Fix some function related highlighting bugs
- Add scope for targeting function calls that are not system function calls
- Add sublime-commands to file types
- Give finer granularity with string types in JSON. Key strings have special scope.
- Add Comment support for comment line shortcut
- Fix #define regex to work more reliably
- Fix comments that trail some preprocessors like #endif etc.
- Fix sizeof scope not getting set properly
- Add scope for targeting function calls that are not system function calls
- Comment out regex that targets
<<
and breaks code it using bitwise<<
operand - Add support for scoping flags of match regex
m/regex/egimos
- Add scope for targeting function calls that are not system function calls
- Add scope for targeting function calls that are not system function calls
- Ensure that dot function calls do not scope all parent memebers, but just the function call
- Python 3 function annotations
- Features ripped from https://github.com/MattDMo/PythonImproved MattDMo seems to be picking up where I left off; if you don't want to use all of my random languages, MattDMo's package is a good one to pick up. He has taken my changes and is actively supporting new ones.
- Fix issue where things like (-moz|-o|-ms|-webkit) items would not highlight.
- (-moz|-o|-ms|-webkit) items and properties
- Add fenced blocks
- Import source highlighting for python, javascript, json, xml, html, php, css, diff, perl, shell (more to come)
- Enable wrapping by default
Remove this:
<dict>
<key>name</key>
<string>JSON String</string>
<key>scope</key>
<string>meta.structure.dictionary.json string.quoted.double.json</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#CFCFC2</string>
</dict>
</dict>
Add then add this in its place:
<dict>
<key>name</key>
<string>Hash String</string>
<key>scope</key>
<string>meta.structure.dictionary string</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#E6DB74</string>
</dict>
</dict>
<dict>
<key>name</key>
<string>Hash Key String</string>
<key>scope</key>
<string>string.quoted.double.key, meta.structure.dictionary.key string</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#66D9EF</string>
</dict>
</dict>
To Colorize Function Calls and To Colorize Non-Built-In Function Calls Differently (In Supported Languages)
Add this to theme file:
<dict>
<key>name</key>
<string>Function Call</string>
<key>scope</key>
<string>meta.function-call.generic, meta.function-call.object, meta.function-call.static</string>
<key>settings</key>
<dict>
<key>fontStyle</key>
<string></string>
<key>foreground</key>
<string>#FF80F4</string>
</dict>
</dict>
You can tweak your theme to have a subtle or dramatic background difference for fenced blocks etc. Just pick a color that works well for your theme.
<dict>
<key>name</key>
<string>Markdown Background</string>
<key>scope</key>
<string>markup.raw.block.markdown, markup.raw.inline.markdown</string>
<key>settings</key>
<dict>
<key>background</key>
<string>#262626</string>
</dict>
</dict>
I like lists to be highlighted differently. This can be done on the default markdown as well.
<dict>
<key>name</key>
<string>Markdown: List</string>
<key>scope</key>
<string>markup.list</string>
<key>settings</key>
<dict>
<key>foreground</key>
<string>#99CCCC</string>
</dict>
</dict>