11{
2- // Place your zpc workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
3- // description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
4- // is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
5- // used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
6- // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
7- // Placeholders with the same ids are connected.
8- // Example:
9- // "Print to console": {
10- // "scope": "javascript,typescript",
11- // "prefix": "log",
12- // "body": [
13- // "console.log('$1');",
14- // "$2"
15- // ],
16- // "description": "Log output to console"
2+ // Place your zpc workspace snippets here. Each snippet is defined under a snippet name and has a scope, prefix, body and
3+ // description. Add comma separated ids of the languages where the snippet is applicable in the scope field. If scope
4+ // is left empty or omitted, the snippet gets applied to all languages. The prefix is what is
5+ // used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
6+ // $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders.
7+ // Placeholders with the same ids are connected.
8+ // Example:
9+ // "Print to console": {
10+ // "scope": "javascript,typescript",
11+ // "prefix": "log",
12+ // "body": [
13+ // "console.log('$1');",
14+ // "$2"
15+ // ],
16+ // "description": "Log output to console"
1717 // }
1818 "ZPC Header" : {
1919 "scope" : " c,cpp" ,
2020 "prefix" : " zpc" ,
21- "body" :[
22- " /******************************************************************************" ,
23- " * # License" ,
24- " * <b>Copyright ${CURRENT_YEAR} Silicon Laboratories Inc. www.silabs.com</b>" ,
25- " ******************************************************************************" ,
26- " * The licensor of this software is Silicon Laboratories Inc. Your use of this" ,
27- " * software is governed by the terms of Silicon Labs Master Software License" ,
28- " * Agreement (MSLA) available at" ,
29- " * www.silabs.com/about-us/legal/master-software-license-agreement. This" ,
30- " * software is distributed to you in Source Code format and is governed by the" ,
31- " * sections of the MSLA applicable to Source Code." ,
32- " *" ,
33- " *****************************************************************************/" ,
34- " " ,
35- " /**" ,
36- " * @defgroup ${TM_FILENAME_BASE}" ,
37- " * @brief TODO: Write brief for ${TM_FILENAME_BASE}" ,
38- " *" ,
39- " * TODO: Write component description for ${TM_FILENAME_BASE}" ,
40- " *" ,
41- " * @{" ,
42- " */" ,
43- " " ,
44- " #ifndef ${TM_FILENAME/(.*)\\ .(.*)/${1:/upcase}_${2:/upcase}/}" ,
45- " #define ${TM_FILENAME/(.*)\\ .(.*)/${1:/upcase}_${2:/upcase}/}" ,
46- " " ,
47- " #ifdef __cplusplus" ,
48- " extern \" C\" {" ,
49- " #endif" ,
50- " " ,
51- " #ifdef __cplusplus" ,
52- " }" ,
53- " #endif" ,
54- " " ,
55- " #endif //${TM_FILENAME/(.*)\\ .(.*)/${1:/upcase}_${2:/upcase}/}" ,
56- " /** @} end ${TM_FILENAME_BASE} */" ,
57- " "
21+ "body" : [
22+ " /******************************************************************************" ,
23+ " * # License" ,
24+ " * <b>Copyright ${CURRENT_YEAR} Silicon Laboratories Inc. www.silabs.com</b>" ,
25+ " ******************************************************************************" ,
26+ " * The licensor of this software is Silicon Laboratories Inc. Your use of this" ,
27+ " * software is governed by the terms of Silicon Labs Master Software License" ,
28+ " * Agreement (MSLA) available at" ,
29+ " * www.silabs.com/about-us/legal/master-software-license-agreement. This" ,
30+ " * software is distributed to you in Source Code format and is governed by the" ,
31+ " * sections of the MSLA applicable to Source Code." ,
32+ " *" ,
33+ " *****************************************************************************/" ,
34+ " " ,
35+ " /**" ,
36+ " * @defgroup ${TM_FILENAME_BASE}" ,
37+ " * @brief TODO: Write brief for ${TM_FILENAME_BASE}" ,
38+ " *" ,
39+ " * TODO: Write component description for ${TM_FILENAME_BASE}" ,
40+ " *" ,
41+ " * @{" ,
42+ " */" ,
43+ " " ,
44+ " #ifndef ${TM_FILENAME/(.*)\\ .(.*)/${1:/upcase}_${2:/upcase}/}" ,
45+ " #define ${TM_FILENAME/(.*)\\ .(.*)/${1:/upcase}_${2:/upcase}/}" ,
46+ " " ,
47+ " #ifdef __cplusplus" ,
48+ " extern \" C\" {" ,
49+ " #endif" ,
50+ " " ,
51+ " #ifdef __cplusplus" ,
52+ " }" ,
53+ " #endif" ,
54+ " " ,
55+ " #endif //${TM_FILENAME/(.*)\\ .(.*)/${1:/upcase}_${2:/upcase}/}" ,
56+ " /** @} end ${TM_FILENAME_BASE} */" ,
57+ " "
5858 ],
5959 "description" : " ZPC C Header"
6060 },
61-
6261 "ZPC Source" : {
6362 "prefix" : " zpc" ,
6463 "scope" : " c,cpp" ,
65- "body" :[
66- " /******************************************************************************" ,
67- " * # License" ,
68- " * <b>Copyright ${CURRENT_YEAR} Silicon Laboratories Inc. www.silabs.com</b>" ,
69- " ******************************************************************************" ,
70- " * The licensor of this software is Silicon Laboratories Inc. Your use of this" ,
71- " * software is governed by the terms of Silicon Labs Master Software License" ,
72- " * Agreement (MSLA) available at" ,
73- " * www.silabs.com/about-us/legal/master-software-license-agreement. This" ,
74- " * software is distributed to you in Source Code format and is governed by the" ,
75- " * sections of the MSLA applicable to Source Code." ,
76- " *" ,
77- " *****************************************************************************/" ,
78- " #include \" ${TM_FILENAME_BASE}.h\" " , ],
64+ "body" : [
65+ " /******************************************************************************" ,
66+ " * # License" ,
67+ " * <b>Copyright ${CURRENT_YEAR} Silicon Laboratories Inc. www.silabs.com</b>" ,
68+ " ******************************************************************************" ,
69+ " * The licensor of this software is Silicon Laboratories Inc. Your use of this" ,
70+ " * software is governed by the terms of Silicon Labs Master Software License" ,
71+ " * Agreement (MSLA) available at" ,
72+ " * www.silabs.com/about-us/legal/master-software-license-agreement. This" ,
73+ " * software is distributed to you in Source Code format and is governed by the" ,
74+ " * sections of the MSLA applicable to Source Code." ,
75+ " *" ,
76+ " *****************************************************************************/" ,
77+ " #include \" ${TM_FILENAME_BASE}.h\" " ,
78+ ],
7979 "description" : " ZPC C Source"
8080 },
81-
8281 "Contiki Process" : {
8382 "scope" : " c,cpp" ,
8483 "prefix" : " zpc" ,
85- "body" :[
84+ "body" : [
8685 " PROCESS(${1:${TM_FILENAME_BASE}_process}, \" $1\" );" ,
8786 " " ,
8887 " PROCESS_THREAD($1, ev, data)" ,
10099 ],
101100 "description" : " Add Contiki process"
102101 },
103-
104102 "Unity Test" : {
105103 "prefix" : " zpc" ,
106104 "scope" : " c,cpp" ,
107- "body" :[
105+ "body" : [
108106 " /******************************************************************************" ,
109107 " * # License" ,
110108 " * <b>Copyright ${CURRENT_YEAR} Silicon Laboratories Inc. www.silabs.com</b>" ,
118116 " *" ,
119117 " *****************************************************************************/" ,
120118 " #include \" unity.h\" " ,
121-
122119 " /// Setup the test suite (called once before all test_xxx functions are called)" ,
123120 " void suiteSetUp() {}" ,
124121 " " ,
138135 "Rust file" : {
139136 "prefix" : " zpc" ,
140137 "scope" : " rust" ,
141- "body" :[
138+ "body" : [
142139 " ///////////////////////////////////////////////////////////////////////////////" ,
143140 " // # License" ,
144141 " // <b>Copyright ${CURRENT_YEAR} Silicon Laboratories Inc. www.silabs.com</b>" ,
153150 " ///////////////////////////////////////////////////////////////////////////////" ,
154151 ],
155152 "description" : " UIC rust source file"
156- },
153+ },
154+ "Python file" : {
155+ "prefix" : " zpc" ,
156+ "scope" : " python" ,
157+ "body" : [
158+ " ###############################################################################" ,
159+ " ## License" ,
160+ " ## <b>Copyright ${CURRENT_YEAR} Silicon Laboratories Inc. www.silabs.com</b>" ,
161+ " ###############################################################################" ,
162+ " ## The licensor of this software is Silicon Laboratories Inc. Your use of this" ,
163+ " ## software is governed by the terms of Silicon Labs Master Software License" ,
164+ " ## Agreement (MSLA) available at" ,
165+ " ## www.silabs.com/about-us/legal/master-software-license-agreement. This" ,
166+ " ## software is distributed to you in Source Code format and is governed by the" ,
167+ " ## sections of the MSLA applicable to Source Code." ,
168+ " ##" ,
169+ " ###############################################################################" ,
170+ ],
171+ "description" : " UIC python source file"
172+ }
157173}
0 commit comments