Skip to content

Commit 9e73e18

Browse files
author
Max Brunsfeld
committed
Merge pull request atom#96 from rclark/auto-indent-arrays
Autoindent rules for arrays
2 parents 467c643 + 02f1c9c commit 9e73e18

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

settings/language-javascript.cson

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
'foldEndPattern': '^\\s*\\}|^\\s*\\]|^\\s*\\)'
55
'increaseIndentPattern': '(?x)
66
\\{ [^}"\']* $
7+
| \\[ [^\\]"\']* $
78
| \\( [^)"\']* $
89
| case[\\s\\S]*: $
910
| default: $
1011
'
1112
'decreaseIndentPattern': '(?x)
12-
^ \\s* (\\s* /[*] .* [*]/ \\s*)* [})]
13+
^ \\s* (\\s* /[*] .* [*]/ \\s*)* [}\\])]
1314
'

0 commit comments

Comments
 (0)