1+ {
2+ "source" : [
3+ [" true" , " false" , " undefined" , " const" , " ternary" , " function" , " if_source1" , " else" , " lambda" ],
4+ [" true" , " false" , " undefined" , " const" , " ternary" , " function" , " if_source1" , " else" , " lambda" , " null" ],
5+ [" true" , " false" , " undefined" , " const" , " ternary" , " function" , " if_source3" , " else" , " lambda" , " null" , " let" , " while" , " for" , " break" , " continue" ],
6+ [" true" , " false" , " undefined" , " const" , " ternary" , " function" , " if_source3" , " else" , " lambda" , " null" , " let" , " while" , " for" , " break" , " continue" ]
7+ ],
8+ "keywords" : {
9+ "true" : {
10+ "label" : " true" ,
11+ "documentation" : " Boolean true"
12+ },
13+ "false" : {
14+ "label" : " false" ,
15+ "documentation" : " Boolean false"
16+ },
17+ "undefined" : {
18+ "label" : " undefined" ,
19+ "documentation" : " Primitive value"
20+ },
21+ "return" : {
22+ "label" : " return" ,
23+ "documentation" : " Return statement"
24+ },
25+ "const" : {
26+ "label" : " const" ,
27+ "documentation" : " ```js\n const name = value\n ```" ,
28+ "insertText" : " const ${1:name} = ${2:value};"
29+ },
30+ "ternary" : {
31+ "label" : " ternary" ,
32+ "documentation" : " ```js\n predicate ? consequent : alternate\n ```" ,
33+ "insertText" : " ${1:predicate} ? ${2:consequent} : ${3:alternate};"
34+ },
35+ "function" : {
36+ "label" : " function" ,
37+ "documentation" : " ```js\n function name(args) {\n\t // Function body\n }\n ```" ,
38+ "insertText" : " function ${1:name}(${2:args}) {\n\t ${3:}\n }"
39+ },
40+ "if_source1" : {
41+ "label" : " if" ,
42+ "documentation" : " ```js\n if (predicate) {\n\t // If body\n }\n else {\n\t\n }\n ```" ,
43+ "insertText" : " if (${1:predicate}) {\n\t ${2:}\n }\n else {\n\t ${3:}\n }"
44+ },
45+ "else" : {
46+ "label" : " else" ,
47+ "documentation" : " ```js\n else {\n\t // Else body\n }\n ```" ,
48+ "insertText" : " else {\n\t ${1:}\n }"
49+ },
50+ "lambda" : {
51+ "label" : " lambda" ,
52+ "documentation" : " ```js\n (args) => // Lambda body\n ```" ,
53+ "insertText" : " (${1:args}) => ${2:}"
54+ },
55+ "null" : {
56+ "label" : " null" ,
57+ "documentation" : " Primitive value, the empty list."
58+ },
59+ "if_source3" : {
60+ "label" : " if" ,
61+ "documentation" : " ```js\n if (predicate) {\n\t // If body\n }\n ```" ,
62+ "insertText" : " if (${1:predicate}) {\n\t ${2:}\n }"
63+ },
64+ "let" : {
65+ "label" : " let" ,
66+ "documentation" : " ```js\n let name = value\n ```" ,
67+ "insertText" : " let ${1:name} = ${2:value};"
68+ },
69+ "while" : {
70+ "label" : " while" ,
71+ "documentation" : " ```js\n while(predicate) {\n\t // While body\n }\n ```" ,
72+ "insertText" : " while(${1:predicate}) {\n\t ${2:}\n }"
73+ },
74+ "for" : {
75+ "label" : " for" ,
76+ "documentation" : " ```js\n for(let index = 0; i < n; index++) {\n\t // For body\n }\n ```" ,
77+ "insertText" : " for(let ${1:index} = 0; i < ${2:n}; ${1:index}++) {\n\t ${3:}\n }"
78+ },
79+ "break" : {
80+ "label" : " break" ,
81+ "documentation" : " Break statement"
82+ },
83+ "continue" : {
84+ "label" : " continue" ,
85+ "documentation" : " Conintue statement"
86+ }
87+ }
88+ }
0 commit comments