Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit d18b536

Browse files
committed
Merge pull request #6 from guidokessels/patch-1
Fix incorrect `\` in several snippets
2 parents 75b4390 + 8d915f1 commit d18b536

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

snippets/language-javascript.cson

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,16 @@
4646
'body': 'console.log($1);$0'
4747
'setInterval function':
4848
'prefix': 'interval'
49-
'body': 'setInterval(${2:function () {\n\t$3\n\\}}, ${1:10});'
49+
'body': 'setInterval(${2:function () {\n\t$3\n}}, ${1:10});'
5050
'setTimeout function':
5151
'prefix': 'timeout'
52-
'body': 'setTimeout(${2:function () {\n\t$3\n\\}}, ${1:10});'
52+
'body': 'setTimeout(${2:function () {\n\t$3\n}}, ${1:10});'
5353
'switch':
5454
'prefix': 'switch'
5555
'body': 'switch (${1:expression}) {\ncase ${2:expression}:\n\t$4\n\tbreak;$5\ndefault:\n\t$3\n}'
5656
'try':
5757
'prefix': 'try'
58-
'body': 'try {\n\t${1:statements}\n} catch (${2:variable}) {\n\t${3:statements}\n}${4: finally {\n\t${5:statements}\n\\}}'
58+
'body': 'try {\n\t${1:statements}\n} catch (${2:variable}) {\n\t${3:statements}\n}${4: finally {\n\t${5:statements}\n}}'
5959
'while':
6060
'prefix': 'while'
6161
'body': 'while (${1:true}) {\n\t$2\n}'

0 commit comments

Comments
 (0)