Add an extern "C" block snippet

This commit is contained in:
2026-02-25 15:53:32 +00:00
parent 4a3daeeb61
commit 8f3bda4a58

View File

@@ -45,6 +45,12 @@ local snippets = {
end, key('guard')),
}, {}),
snippet('externc', {
text({ '#ifdef __cplusplus', 'extern "C" {', '#endif', '', '' }),
insert(0, ''),
text({ '', '', '#ifdef __cplusplus', '}', '#endif' }),
}),
-- Doxygen
snippet('p', {
text('@param'),