Skip to content

Instantly share code, notes, and snippets.

@dufferzafar
Created August 13, 2014 17:55
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dufferzafar/5946fd5772e9ea070d28 to your computer and use it in GitHub Desktop.
Save dufferzafar/5946fd5772e9ea070d28 to your computer and use it in GitHub Desktop.
Sublime syntax highlight for .jrnl files
<?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>fileTypes</key>
<array>
<string>jrnl</string>
</array>
<key>name</key>
<string>Jrnl File</string>
<key>patterns</key>
<array>
<dict>
<key>include</key>
<string>#date</string>
</dict>
<dict>
<key>include</key>
<string>#tags</string>
</dict>
</array>
<key>repository</key>
<dict>
<key>date</key>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>comment.git-blame</string>
</dict>
<key>2</key>
<dict>
<key>name</key>
<string>variable.parameter.line-number.git-blame</string>
</dict>
</dict>
<key>match</key>
<string>(\d{4}-\d{2}-\d{2}\s\d{2}:\d{2})\s(.*)</string>
<key>name</key>
<string>line.comment.jrnl</string>
</dict>
<key>tags</key>
<dict>
<key>match</key>
<string>@\w+</string>
<key>name</key>
<string>keyword.jrnl</string>
</dict>
</dict>
<key>scopeName</key>
<string>source.jrnl</string>
<key>uuid</key>
<string>6c6128dc-0dcc-4a79-8adb-35bf12199d7f</string>
</dict>
</plist>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment