mirror of
https://github.com/neovim/neovim.git
synced 2024-12-23 20:55:18 -07:00
fix(docs): clean up non-docstring comments for vimdoc gen
These non-docstring comments can be included into doxygen's brief description and then appear in the succeeding function documentation.
This commit is contained in:
parent
1a31d4cf2b
commit
67f5332344
@ -1069,7 +1069,7 @@ function M.show_document(location, offset_encoding, opts)
|
|||||||
-- location may be Location or LocationLink
|
-- location may be Location or LocationLink
|
||||||
local range = location.range or location.targetSelectionRange
|
local range = location.range or location.targetSelectionRange
|
||||||
if range then
|
if range then
|
||||||
--- Jump to new location (adjusting for encoding of characters)
|
-- Jump to new location (adjusting for encoding of characters)
|
||||||
local row = range.start.line
|
local row = range.start.line
|
||||||
local col = get_line_byte_from_position(bufnr, range.start, offset_encoding)
|
local col = get_line_byte_from_position(bufnr, range.start, offset_encoding)
|
||||||
api.nvim_win_set_cursor(win, { row + 1, col })
|
api.nvim_win_set_cursor(win, { row + 1, col })
|
||||||
|
@ -579,7 +579,7 @@ function vim.tbl_isarray(t)
|
|||||||
local count = 0
|
local count = 0
|
||||||
|
|
||||||
for k, _ in pairs(t) do
|
for k, _ in pairs(t) do
|
||||||
--- Check if the number k is an integer
|
-- Check if the number k is an integer
|
||||||
if type(k) == 'number' and k == math.floor(k) then
|
if type(k) == 'number' and k == math.floor(k) then
|
||||||
count = count + 1
|
count = count + 1
|
||||||
else
|
else
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
--- Text processing functions.
|
-- Text processing functions.
|
||||||
|
|
||||||
local M = {}
|
local M = {}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user