Skip to content

Commit 5cd3114

Browse files
committed
Fix indentation of var statements not terminated with a semi-colon
Fixes #39
1 parent ed7a26d commit 5cd3114

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Preferences/JavaScript Indent.tmPreferences

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</string>
2727
<key>indentNextLinePattern</key>
2828
<string>(?x)
29-
^ \s* (var|for|while|if|else)\b
29+
^ \s* (for|while|if|else)\b
3030
# Disregard if line ends with semi-colon or braces
3131
(?! .* [;{}] \s* ( // .* | /[*] .* [*]/ \s* )? $ )
3232
</string>
@@ -56,7 +56,7 @@
5656
5757
(?!
5858
# indentNextLinePattern
59-
^ \s* (var|for|while|if|else)\b
59+
^ \s* (for|while|if|else)\b
6060
(?! .* [;{}] \s* ( // .* | /[*] .* [*]/ \s* )? $ )
6161
)
6262
</string>

0 commit comments

Comments
 (0)