-
Notifications
You must be signed in to change notification settings - Fork 736
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tools - Add function header snippet (#10682)
Co-authored-by: PabstMirror <[email protected]>
- Loading branch information
1 parent
62d5f22
commit a8eacf4
Showing
4 changed files
with
40 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,6 @@ | |
*.zip | ||
release/* | ||
releases/* | ||
.vscode/* | ||
hemtt | ||
hemtt.exe | ||
.hemttout | ||
|
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
{ | ||
"SQF Function Header": { | ||
"description": "SQF function header", | ||
"prefix": "header", | ||
"body": [ | ||
"#include \"..\\script_component.hpp\"", | ||
"/*", | ||
" * Author: ${1:Author}", | ||
" * ${2:Description}", | ||
" *", | ||
" * Arguments:", | ||
" * ${8:0: ${9:Description} <${10|OBJECT,NUMBER,STRING,BOOL,ARRAY,CONTROL,DISPLAY,CONFIG,CODE,ANY,LOGIC,SIDE,GROUP,HASHMAP,NAMESPACE,LOCATION,TEXT|}>}$0", | ||
" *", | ||
" * Return Value:", | ||
" * ${4:${5:Description} <${6|OBJECT,NUMBER,STRING,BOOL,ARRAY,CONTROL,DISPLAY,CONFIG,CODE,ANY,LOGIC,SIDE,GROUP,HASHMAP,NAMESPACE,LOCATION,TEXT|}>}", | ||
" *", | ||
" * Example:", | ||
" * [$7] call ace_${TM_DIRECTORY/(.*)addons\\\\(.*)\\\\functions(.*)/$2/}_${TM_FILENAME_BASE}", | ||
" *", | ||
" * Public: ${3|No,Yes|}", | ||
" */", | ||
"", | ||
"" | ||
], | ||
}, | ||
"SQF Function Header Argument": { | ||
"description": "SQF function header argument", | ||
"prefix": "header_argument", | ||
"body": [ | ||
"* ${1:1}: ${2:Description} <${3|OBJECT,NUMBER,STRING,BOOL,ARRAY,CONTROL,DISPLAY,CONFIG,CODE,ANY,LOGIC,SIDE,GROUP,HASHMAP,NAMESPACE,LOCATION,TEXT|}>", | ||
], | ||
}, | ||
"SQF Function Header Return Value": { | ||
"description": "SQF function header return value", | ||
"prefix": "header_return", | ||
"body": [ | ||
"* ${1:Description} <${2|OBJECT,NUMBER,STRING,BOOL,ARRAY,CONTROL,DISPLAY,CONFIG,CODE,ANY,LOGIC,SIDE,GROUP,HASHMAP,NAMESPACE,LOCATION,TEXT|}>", | ||
], | ||
}, | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters