This repository was archived by the owner on Dec 15, 2022. It is now read-only.
File tree 1 file changed +2
-2
lines changed 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 1
1
' .source.ruby' :
2
2
' editor' :
3
3
' commentStart' : ' # '
4
- ' increaseIndentPattern' : ' (?x)^\n (\\ s*\n (module|class|(private\\ s+)?def\n |unless|if|else|elsif\n |case|when\n |begin|rescue|ensure\n |for|while|until\n |(?= .*? \\ b(do|begin|case|if|unless)\\ b )\n # the look-ahead above is to quickly discard non-candidates\n ( "(\\\\ .|[^\\\\ "])*+" # eat a double quoted string\n | \' (\\\\ .|[^\\\\\' ])*+\' # eat a single quoted string\n | [^#"\' ] # eat all but comments and strings\n )*\n ( \\ s (do|begin|case)\n | [-+=&|*/~%^<>~](?<!\\ $.) \\ s*+ (if|unless)\n )\n )\\ b\n (?! [^;]*+ ; .*? \\ bend\\ b )\n |( "(\\\\ .|[^\\\\ "])*+" # eat a double quoted string\n | \' (\\\\ .|[^\\\\\' ])*+\' # eat a single quoted string\n | [^#"\' ] # eat all but comments and strings\n )*\n ( \\ { (?! [^}]*+ \\ } )\n | \\ [ (?! [^\\ ]]*+ \\ ] )\n )\n ).*$'
5
- ' decreaseIndentPattern' : ' ^\\ s*([}\\ ]](,?\\ s*(#|$)|\\ .[a-zA-Z_]\\ w*\\ b)|(end|rescue|ensure|else|elsif|when)\\ b)'
4
+ 'increaseIndentPattern': '(?x)^\n (\\s*\n (module|class|(private\\s+)?def\n |unless|if|else|elsif\n |case|when\n |begin|rescue|ensure\n |for|while|until\n |(?= .*? \\b(do|begin|case|if|unless)\\b )\n # the look-ahead above is to quickly discard non-candidates\n ( "(\\\\.|[^\\\\"])*+" # eat a double quoted string\n | \'(\\\\.|[^\\\\\'])*+\' # eat a single quoted string\n | [^#"\'] # eat all but comments and strings\n )*\n ( \\s (do|begin|case)\n | [-+=&|*/~%^<>~](?<!\\$.) \\s*+ (if|unless)\n )\n )\\b\n (?! [^;]*+ ; .*? \\bend\\b )\n |( "(\\\\.|[^\\\\"])*+" # eat a double quoted string\n | \'(\\\\.|[^\\\\\'])*+\' # eat a single quoted string\n | [^#"\'] # eat all but comments and strings\n )*\n (\\( (?! [^\\)]*+ \\) )\n | \\{ (?! [^}]*+ \\} )\n | \\[ (?! [^\\]]*+ \\] )\n )\n ).*$'
5
+ ' decreaseIndentPattern' : ' ^\\ s*([}\\ ]\\ ) ](,?\\ s*(#|$)|\\ .[a-zA-Z_]\\ w*\\ b)|(end|rescue|ensure|else|elsif|when)\\ b)'
6
6
' .text.html.erb' :
7
7
' editor' :
8
8
' foldEndPattern' : ' (?x)\n\t\t (</(?i:head|body|table|thead|tbody|tfoot|tr|div|select|fieldset|style|script|ul|ol|form|dl)>\n\t\t |^\\ s*-->\n\t\t |(^|\\ s)\\ }\n\t\t )'
You can’t perform that action at this time.
0 commit comments