Skip to content
Browse files

Move folding settings.

  • Loading branch information...
1 parent 07cdcc0 commit 3f735aa84d6fb76a4a0d40a390a2e4d1685562ff @infininight infininight committed
Showing with 38 additions and 23 deletions.
  1. +38 −0 Preferences/Folding.tmPreferences
  2. +0 −23 Syntaxes/JSON.tmLanguage
View
38 Preferences/Folding.tmPreferences
@@ -0,0 +1,38 @@
+<?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>name</key>
+ <string>Folding</string>
+ <key>scope</key>
+ <string>source.json</string>
+ <key>settings</key>
+ <dict>
+ <key>foldingStartMarker</key>
+ <string>(?x: # turn on extended mode
+ ^ # a line beginning with
+ \s* # some optional space
+ [{\[] # the start of an object or array
+ (?! # but not followed by
+ .* # whatever
+ [}\]] # and the close of an object or array
+ ,? # an optional comma
+ \s* # some optional space
+ $ # at the end of the line
+ )
+ | # ...or...
+ [{\[] # the start of an object or array
+ \s* # some optional space
+ $ # at the end of the line
+ )</string>
+ <key>foldingStopMarker</key>
+ <string>(?x: # turn on extended mode
+ ^ # a line beginning with
+ \s* # some optional space
+ [}\]] # and the close of an object or array
+ )</string>
+ </dict>
+ <key>uuid</key>
+ <string>0CA8F9F2-FF0F-47BF-8D77-1DC5747C7D4C</string>
+</dict>
+</plist>
View
23 Syntaxes/JSON.tmLanguage
@@ -6,29 +6,6 @@
<array>
<string>json</string>
</array>
- <key>foldingStartMarker</key>
- <string>(?x: # turn on extended mode
- ^ # a line beginning with
- \s* # some optional space
- [{\[] # the start of an object or array
- (?! # but not followed by
- .* # whatever
- [}\]] # and the close of an object or array
- ,? # an optional comma
- \s* # some optional space
- $ # at the end of the line
- )
- | # ...or...
- [{\[] # the start of an object or array
- \s* # some optional space
- $ # at the end of the line
- )</string>
- <key>foldingStopMarker</key>
- <string>(?x: # turn on extended mode
- ^ # a line beginning with
- \s* # some optional space
- [}\]] # and the close of an object or array
- )</string>
<key>keyEquivalent</key>
<string>^~J</string>
<key>name</key>

0 comments on commit 3f735aa

Please sign in to comment.
Something went wrong with that request. Please try again.