diff options
author | Preston Pan <ret2pop@gmail.com> | 2025-01-28 13:07:16 -0800 |
---|---|---|
committer | Preston Pan <ret2pop@gmail.com> | 2025-01-29 14:50:55 -0800 |
commit | 46e8b0c5e914c0283a08b0f08aa3cc7c381f47b8 (patch) | |
tree | dd8122e9123502309b702910820cc240b016c62b /yasnippet/c-mode | |
parent | 97e5a140c34127fccdf6047d316c51785b6b52cd (diff) |
add kiwix; yasnippet macros; a couple new entries; update website
Diffstat (limited to 'yasnippet/c-mode')
-rw-r--r-- | yasnippet/c-mode/bcom | 5 | ||||
-rw-r--r-- | yasnippet/c-mode/com | 6 | ||||
-rw-r--r-- | yasnippet/c-mode/ndef | 8 | ||||
-rw-r--r-- | yasnippet/c-mode/ts | 8 | ||||
-rw-r--r-- | yasnippet/c-mode/tu | 8 |
5 files changed, 35 insertions, 0 deletions
diff --git a/yasnippet/c-mode/bcom b/yasnippet/c-mode/bcom new file mode 100644 index 0000000..9b74a91 --- /dev/null +++ b/yasnippet/c-mode/bcom @@ -0,0 +1,5 @@ +# -*- mode: snippet -*- +# name: bcom +# key: bcom +# -- +/*! @brief $0 */
\ No newline at end of file diff --git a/yasnippet/c-mode/com b/yasnippet/c-mode/com new file mode 100644 index 0000000..66551f1 --- /dev/null +++ b/yasnippet/c-mode/com @@ -0,0 +1,6 @@ + +# -*- mode: snippet -*- +# name: com +# key: com +# -- +/*! $0 */
\ No newline at end of file diff --git a/yasnippet/c-mode/ndef b/yasnippet/c-mode/ndef new file mode 100644 index 0000000..838829c --- /dev/null +++ b/yasnippet/c-mode/ndef @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: ndef +# key: ndef +# -- +#ifndef $1 +#define $1 +$0 +#endif /* $1 */ diff --git a/yasnippet/c-mode/ts b/yasnippet/c-mode/ts new file mode 100644 index 0000000..2152ca2 --- /dev/null +++ b/yasnippet/c-mode/ts @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: ts +# key: ts +# -- +/*! @brief $3 */ +typedef struct $1 { + $0 +} $2;
\ No newline at end of file diff --git a/yasnippet/c-mode/tu b/yasnippet/c-mode/tu new file mode 100644 index 0000000..df97bd2 --- /dev/null +++ b/yasnippet/c-mode/tu @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: tu +# key: tu +# -- +/*! @brief $3 */ +typedef union $1 { + $0 +} $2;
\ No newline at end of file |