Closed chenglou closed 10 years ago
very strange, does your modified Data/Packages/JavaScript/JavaScript.tmlanguage
look like this
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>comment</key>
<string>JavaScript Syntax: version 2.0</string>
<key>fileTypes</key>
<array>[ … ]
</array>
<key>firstLineMatch</key>
<string>^#!/usr/bin/env node</string>
<key>foldingStartMarker</key>
<string>^.*\bfunction\s*(\w+\s*)?\([^\)]*\)(\s*\{[^\}]*)?\s*$</string>
<key>foldingStopMarker</key>
<string>^\s*\}</string>
<key>keyEquivalent</key>
<string>^~J</string>
<key>name</key>
<string>JavaScript</string>
<key>patterns</key>
<array>[ … ]
<dict>
<key>comment</key>
<string>colorize everything</string>
<key>match</key>
<string>\b\w+\b</string>
<key>name</key>
<string>colorize</string>
</dict>
</array>
<key>scopeName</key>
<string>source.js</string>
<key>uuid</key>
<string>93E017CC-6F27-11D9-90EB-000D93589AF6</string>
</dict>
</plist>
if not could you make a pastie
Ugh sorry, ST3 doesn't expose that anymore so I made my own and screwed up. It's all correct now, thanks!
cool, glad it worked. Hope Colorcoder will enhance your productivity
Hi! Installed this via package control on ST3. I use the default monokai. Added the snippet in as indicated by README.
Only some function declarations and seem to be highlighted. The variables stay white, etc.