Skip to content

Commit

Permalink
fix: no surrounding spaces for one-line-docstring (#154)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser authored Sep 9, 2023
1 parent 1dd0319 commit 70127ba
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lua/neogen/templates/google_docstrings.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local i = require("neogen.types.template").item

return {
{ nil, '""" $1 """', { no_results = true, type = { "class", "func" } } },
{ nil, '"""$1"""', { no_results = true, type = { "class", "func" } } },
{ nil, '"""$1', { no_results = true, type = { "file" } } },
{ nil, "", { no_results = true, type = { "file" } } },
{ nil, "$1", { no_results = true, type = { "file" } } },
Expand Down
2 changes: 1 addition & 1 deletion lua/neogen/templates/numpydoc.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local i = require("neogen.types.template").item

return {
{ nil, '""" $1 """', { no_results = true, type = { "class", "func" } } },
{ nil, '"""$1"""', { no_results = true, type = { "class", "func" } } },
{ nil, '"""$1', { no_results = true, type = { "file" } } },
{ nil, "", { no_results = true, type = { "file" } } },
{ nil, "$1", { no_results = true, type = { "file" } } },
Expand Down
2 changes: 1 addition & 1 deletion lua/neogen/templates/reST.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
local i = require("neogen.types.template").item

return {
{ nil, '""" $1 """', { no_results = true, type = { "class", "func" } } },
{ nil, '"""$1"""', { no_results = true, type = { "class", "func" } } },
{ nil, '"""$1', { no_results = true, type = { "file" } } },
{ nil, "", { no_results = true, type = { "file" } } },
{ nil, "$1", { no_results = true, type = { "file" } } },
Expand Down

0 comments on commit 70127ba

Please sign in to comment.