Skip to content

Commit

Permalink
Add language definition
Browse files Browse the repository at this point in the history
  • Loading branch information
aurule committed May 12, 2016
1 parent 190fd68 commit 8174553
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 2 deletions.
50 changes: 50 additions & 0 deletions JSON Key-Value.tmLanguage
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>name</key>
<string>JSON Key-Value</string>
<key>scopeName</key>
<string>source.json</string>
<key>fileTypes</key>
<array>
<string>json</string>
</array>
<key>uuid</key>
<string>4e5a820c-0650-4de9-b793-201999eeeb4f</string>

<key>patterns</key>
<array>
<dict>
<key>match</key>
<string>//.*</string>
<key>name</key>
<string>comment.single.line.sublime-settings</string>
</dict>
<dict>
<key>begin</key>
<string>/\*</string>
<key>end</key>
<string>\*/</string>
<key>name</key>
<string>comment.block.sublime-settings</string>
</dict>
<dict>
<key>captures</key>
<dict>
<key>1</key>
<dict>
<key>name</key>
<string>keyword.other.name.sublime-settings</string>
</dict>
</dict>
<key>match</key>
<string>"(?i)([a-z0-9_.*-]+)"\s*?:</string>
</dict>
<dict>
<key>include</key>
<string>source.jsongenericarrayelements</string>
</dict>
</array>
</dict>
</plist>
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
# json-kv
Alternative language definition for the JSON syntax
# JSON-alt

Alternative language definition for the JSON syntax which highlights key names. Nearly identical to the language used for Sublime Text configuration files.
3 changes: 3 additions & 0 deletions messages.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"install": "messages/install.txt",
}
3 changes: 3 additions & 0 deletions messages/install.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# JSON Key-Value Installed

Thanks for installing! Enjoy!

0 comments on commit 8174553

Please sign in to comment.