(python, js, c) Add support for multiple cursor

This commit is contained in:
Daniel Mathiot
2021-08-27 22:21:43 +02:00
parent c9ba1dcc5d
commit 95d2368ccc
3 changed files with 15 additions and 15 deletions

View File

@@ -128,10 +128,10 @@ return {
doxygen = {
{ nil, "/* */", { no_results = true } },
{ nil, "/**" },
{ nil, " * @brief " },
{ nil, " * @brief $1" },
{ nil, " *" },
{ "parameters", " * @param[in] %s " },
{ "return_statement", " * @returns " },
{ "parameters", " * @param[in] %s $1" },
{ "return_statement", " * @returns $1" },
{ nil, " */" },
},
},

View File

@@ -72,11 +72,11 @@ return {
use_default_comment = false,
jsdoc = {
{ nil, "/* */", { no_results = true } },
{ nil, "/* $1 */", { no_results = true } },
{ nil, "/**" },
{ "class_tag", " * @classdesc", { before_first_item = { " * ", " * @class" }, type = { "class" } } },
{ "parameters", " * @param {any} %s " },
{ "return_statement", " * @returns {any} " },
{ "class_tag", " * @classdesc $1", { before_first_item = { " * ", " * @class" }, type = { "class" } } },
{ "parameters", " * @param {any} %s $1" },
{ "return_statement", " * @returns {$1|any}" },
{ nil, " */" },
},
},

View File

@@ -109,19 +109,19 @@ return {
append = { position = "after", child_name = "block" }, -- optional: where to append the text (default_generator)
use_default_comment = false, -- If you want to prefix the template with the default comment for the language, e.g for python: # (default_generator)
google_docstrings = {
{ nil, '"""' },
{ nil, '""" """', { no_results = true } },
{ "parameters", "\t%s: ", { before_first_item = { "", "Args:" } } },
{ "attributes", "\t%s: ", { before_first_item = { "", "Attributes: " } } },
{ nil, '"""$1' },
{ nil, '""" $1 """', { no_results = true } },
{ "parameters", "\t%s: $1", { before_first_item = { "", "Args:" } } },
{ "attributes", "\t%s: $1", { before_first_item = { "", "Attributes: " } } },
{ "return_statement", "", { before_first_item = { "", "Returns: " } } },
{ nil, "" },
{ nil, '"""' },
},
numpydoc = {
{ nil, '"""' },
{ nil, '""" """', { no_results = true } },
{ "parameters", "%s: ", { before_first_item = { "", "Parameters", "----------" } } },
{ "attributes", "%s: ", { before_first_item = { "", "Attributes", "----------" } } },
{ nil, '"""$1' },
{ nil, '""" $1 """', { no_results = true } },
{ "parameters", "%s: $1", { before_first_item = { "", "Parameters", "----------" } } },
{ "attributes", "%s: $1", { before_first_item = { "", "Attributes", "----------" } } },
{ "return_statement", "", { before_first_item = { "", "Returns", "-------" } } },
{ nil, "" },
{ nil, '"""' },