From e211835bedc3e0d456033c117842acbf0cd0023d Mon Sep 17 00:00:00 2001 From: Kaelin Laundry Date: Mon, 1 Jan 2018 03:01:29 -0800 Subject: [PATCH] Publish prep --- .gitignore | 1 + assets/help.md | 10 ++++++++++ assets/icon.png | Bin 0 -> 2771 bytes package.json | 7 ++++++- 4 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 assets/icon.png diff --git a/.gitignore b/.gitignore index 9d06f02..3d474f7 100644 --- a/.gitignore +++ b/.gitignore @@ -3,3 +3,4 @@ node_modules .vscode-test/ *.vsix assets/*.html +*.ai \ No newline at end of file diff --git a/assets/help.md b/assets/help.md index 07dd1a1..2c7f421 100644 --- a/assets/help.md +++ b/assets/help.md @@ -14,6 +14,8 @@ When running commands that ask for text input, examples are shown in the textbox ## English examples +The following are declarations, but the same sytax is used for casts if "as" is replaced with "into". + - `foo as int` - `foo as pointer to int` - `foo as array 6 of int` @@ -21,6 +23,14 @@ When running commands that ask for text input, examples are shown in the textbox - `foo as const int` - `foo as pointer to const int` - `foo as const pointer to int` +- `foo as function (x as pointer to char, y as int) returning pointer to int` + + +Note that some abbreviations can be used. These two are equivalent, for example: +- `foo as function (x as pointer to char, y as int) returning pointer to int` +- `x as func(w as ptr to char, y as int) ret ptr to int` + + ## Full English syntax diff --git a/assets/icon.png b/assets/icon.png new file mode 100644 index 0000000000000000000000000000000000000000..bcbc60f3d39500c8ba83d33410b09515a0c732b2 GIT binary patch literal 2771 zcmV;^3M}=BP)m(^lg-Jv~RCwC$olj^RS02aT8;v!x6ip%%!#bYeY+ z7P~Ron^hfiP`cnt+0sL9F7>I04T0{0A&CyVdvdMYf?J35;DgtK#Jf=Nh#cx#WK;zl z;&@~!`ZLn(L9RL)DU#;BH-BWm-^sF=(Y){H_vgKt_ufENRRJ~ojG+=x02BZ<3V;Hj zW{jR_x~V_0wzk$UfK)1F>ZQ!g%s9;xB}p>7)ieds z8bFN#pa7^*02BZ<3V;HjMgcg%Se%1-o)3jW2nPy+;4~owK?s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^UHI^* zChk|Cil;%)u&+M7gdYUl@BX8$z_YWn-6Me5?&-QL1i5jB51X_(gt%Y*>%Zh;N%eZ* z?OQ&CsVk!aS7h21nf4S)>a)GFxL+lbf*3xmRUa+?0OXr-i9}1zVaMWTsK2#aT6uU} zEUA$j+~4kwU``zJd0=GPvlR6cDFC`A>jW_!z~<&=KA+ci28a&`wsuRa$rAv;(&B}s zsGsc41^C^6ZT}~q&u?ySS_(jxWgYXOYhMs-;XzJWO`do?@T*TRnLT3;!E}vHBofGP zF+qPGpnLf%!43KgC3WS&vDX8a|9sKxkrZ0?*LDAK-h+z{K$4`5jg6MHD11hwg{$lN zVo4>HtcjbhnHw7$Xyq3d001DFOzK<%zZxIplxJdP@sD1D)6+?+KNi;ox=sX30Tc>_ zcJIKf#@EK!i~2b9r}mfyN7uWGbWLfslD&r11>+|ieg5M zGHF=gwB+MZ0001XV%eFmEW+}t)}6{64FCY(o_us>p4C83a8Eum3$0mK?ee=PAK}be zb&C2d@1A@_JoTFo008I>x%Qtrlfb7MATRh8xK{MzLLU48r z3xFt!u~-b@z-Tmz`R*IymP{tm=2sbAl}8eQEXxRsascW^Q2^)CI*)`AUPfccaNhrF-X)pc>Wd002ovPDHLkV1fzALO}ok literal 0 HcmV?d00001 diff --git a/package.json b/package.json index 4695026..4b6a13f 100644 --- a/package.json +++ b/package.json @@ -1,8 +1,9 @@ { "name": "vscode-cdecl", - "displayName": "vscode-cdecl", + "displayName": "cdecl: C gibberish to English", "description": "Convert C/C++ gibberish to English, and back again.", "version": "1.0.0", + "icon": "assets/icon.png", "publisher": "kaelin", "engines": { "vscode": "^1.19.0" @@ -42,6 +43,10 @@ } ] }, + "repository": { + "type": "git", + "url": "https://github.com/WasabiFan/vscode-cdecl" + }, "scripts": { "vscode:prepublish": "npm run compile", "compile": "tsc -p ./ && node ./node_modules/marked/bin/marked ./assets/help.md -o ./assets/help.html",