Skip to content

Commit c9d08ca

Browse files
committed
c++/class: Use yas-c++-class-name
This does the same yas/substr calls previously done by the snippet.
1 parent 2ce06a1 commit c9d08ca

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

snippets/c++-mode/class

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
class ${1:Name}
66
{
77
public:
8-
${1:$(yas/substr yas-text "[^: ]*")}();
9-
${2:virtual ~${1:$(yas/substr yas-text "[^: ]*")}();}
8+
${1:$(yas-c++-class-name yas-text)}();
9+
${2:virtual ~${1:$(yas-c++-class-name yas-text)}();}
1010
};
1111
$0

0 commit comments

Comments
 (0)