mirror of
https://github.com/joaotavora/yasnippet.git
synced 2026-02-04 14:32:26 +00:00
little change to the c snippets
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
# contributor: Translated from TextMate Snippet
|
||||
# name: Struct
|
||||
# --
|
||||
struct ${1:${TM_FILENAME/(.+)\..+|.*/(?1:\L$1_t:name)/}}
|
||||
struct ${1:`(or (and buffer-file-name (file-name-sans-extension (file-name-nondirectory buffer-file-name))) "name")`}
|
||||
{
|
||||
${0:/* data */}
|
||||
${2:/* data */$(yas/ephemeral-field 2)}
|
||||
};
|
||||
Reference in New Issue
Block a user