Permalink
Browse files

Handle quoted keys in indent and folding patterns.

An example would be a construct like this:

	"^x" = {
		"^m" = "selectToMark:";
		"^x" = "swapWithMark:";
		"^w" = "deleteToMark:";
	};
  • Loading branch information...
1 parent bb2ed8d commit 8a2b90aec0551cd085ecc8a32ecc8a53769b5739 @sorbits sorbits committed Jul 10, 2012
Showing with 2 additions and 2 deletions.
  1. +1 −1 Preferences/Folding - Old-Style.tmPreferences
  2. +1 −1 Preferences/Indentation Rules.tmPreferences
@@ -9,7 +9,7 @@
<key>settings</key>
<dict>
<key>foldingStartMarker</key>
- <string>^\s*([a-zA-Z_-]+ = )?[{(](?!.*[)}][;,]?\s*$)</string>
+ <string>^\s*(([a-zA-Z_-]+|"[^"]+"|'[^']+')\s+=\s+)?[{(](?!.*[)}][;,]?\s*$)</string>
<key>foldingStopMarker</key>
<string>^\s*(\}|\))</string>
</dict>
@@ -11,7 +11,7 @@
<key>decreaseIndentPattern</key>
<string>^\s*(\}|\))</string>
<key>increaseIndentPattern</key>
- <string>^\s*((["']?)[A-Za-z._-]+\2\s+=\s+)?[{(](?!.*[)}][;,]?\s*$)</string>
+ <string>^\s*(([a-zA-Z_-]+|"[^"]+"|'[^']+')\s+=\s+)?[{(](?!.*[)}][;,]?\s*$)</string>
</dict>
<key>uuid</key>
<string>0473E42E-A64E-4D3E-B20B-BA66E0145BC4</string>

0 comments on commit 8a2b90a

Please sign in to comment.