Skip to content

Commit 7af525e

Browse files
committed
Fix highlighting bug in the 'for in' snippet
The closing bracket of the $3 tabstop wasn't highlighted properly.
1 parent 39fd698 commit 7af525e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

snippets/language-javascript.cson

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@
2828
'body' : 'for (var ${2:i} = 0; ${2:i} < ${1:array}.length; ${2:i}++) {\n\t${1:array}[${2:i}]$3\n}'
2929
'for in':
3030
'prefix': 'forin'
31-
'body': 'for (var ${1:variable} in ${2:object}) {\n\t${3:if (${2:object}.hasOwnProperty(${1:variable})) {\n\t\t$4\n\t}}\n}'
31+
'body': 'for (var ${1:variable} in ${2:object}) {\n\t${3:if (${2:object}.hasOwnProperty(${1:variable})) {\n\t\t$4\n\t\\}}\n}'
3232
'for of':
3333
'prefix': 'forof'
3434
'body': 'for (${1:variable} of ${2:iterable}) {\n\t$3\n}'

0 commit comments

Comments
 (0)