forked from enlightenment/edi
snippet: add some python snippets
This commit is contained in:
parent
f1643f08ef
commit
ba8dd2becf
|
@ -37,6 +37,15 @@ _edi_language_python_mime_name(const char *mime)
|
||||||
const char *
|
const char *
|
||||||
_edi_language_python_snippet_get(const char *key EINA_UNUSED)
|
_edi_language_python_snippet_get(const char *key EINA_UNUSED)
|
||||||
{
|
{
|
||||||
|
if (!strcmp(key, "def"))
|
||||||
|
return
|
||||||
|
"def ():\n" \
|
||||||
|
" ";
|
||||||
|
else if (!strcmp(key, "defi"))
|
||||||
|
return
|
||||||
|
"def __init__(self):\n" \
|
||||||
|
" ";
|
||||||
|
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue