mirror of
https://github.com/neovim/neovim.git
synced 2025-09-29 22:48:34 +00:00
test: spellcheck :help (vimdoc) files #24109
Enforce consistent terminology (defined in `gen_help_html.lua:spell_dict`) for common misspellings. This does not spellcheck English in general (perhaps a future TODO, though it may be noisy).
This commit is contained in:
@@ -112,7 +112,7 @@ Integer nvim_buf_line_count(Buffer buffer, Error *err)
|
||||
/// - byte count of previous contents
|
||||
/// - deleted_codepoints (if `utf_sizes` is true)
|
||||
/// - deleted_codeunits (if `utf_sizes` is true)
|
||||
/// - on_bytes: lua callback invoked on change.
|
||||
/// - on_bytes: Lua callback invoked on change.
|
||||
/// This callback receives more granular information about the
|
||||
/// change compared to on_lines.
|
||||
/// Return `true` to detach.
|
||||
@@ -1250,11 +1250,11 @@ ArrayOf(Integer, 2) nvim_buf_get_mark(Buffer buffer, String name, Error *err)
|
||||
/// buffer/window currently, like |termopen()|.
|
||||
///
|
||||
/// @param buffer Buffer handle, or 0 for current buffer
|
||||
/// @param fun Function to call inside the buffer (currently lua callable
|
||||
/// @param fun Function to call inside the buffer (currently Lua callable
|
||||
/// only)
|
||||
/// @param[out] err Error details, if any
|
||||
/// @return Return value of function. NB: will deepcopy lua values
|
||||
/// currently, use upvalues to send lua references in and out.
|
||||
/// @return Return value of function. NB: will deepcopy Lua values
|
||||
/// currently, use upvalues to send Lua references in and out.
|
||||
Object nvim_buf_call(Buffer buffer, LuaRef fun, Error *err)
|
||||
FUNC_API_SINCE(7)
|
||||
FUNC_API_LUA_ONLY
|
||||
|
@@ -306,7 +306,7 @@ end:
|
||||
/// make their usage simpler with |vim.cmd()|. For example, instead of
|
||||
/// `vim.cmd.bdelete{ count = 2 }`, you may do `vim.cmd.bdelete(2)`.
|
||||
///
|
||||
/// On execution error: fails with VimL error, updates v:errmsg.
|
||||
/// On execution error: fails with Vimscript error, updates v:errmsg.
|
||||
///
|
||||
/// @see |nvim_exec2()|
|
||||
/// @see |nvim_command()|
|
||||
|
@@ -1048,7 +1048,7 @@ void nvim_buf_clear_namespace(Buffer buffer, Integer ns_id, Integer line_start,
|
||||
|
||||
/// Set or change decoration provider for a |namespace|
|
||||
///
|
||||
/// This is a very general purpose interface for having lua callbacks
|
||||
/// This is a very general purpose interface for having Lua callbacks
|
||||
/// being triggered during the redraw code.
|
||||
///
|
||||
/// The expected usage is to set |extmarks| for the currently
|
||||
|
@@ -256,7 +256,7 @@ Object vim_to_object(typval_T *obj)
|
||||
return ret;
|
||||
}
|
||||
|
||||
/// Converts from type Object to a VimL value.
|
||||
/// Converts from type Object to a Vimscript value.
|
||||
///
|
||||
/// @param obj Object to convert from.
|
||||
/// @param tv Conversion result is placed here. On failure member v_type is
|
||||
@@ -283,7 +283,7 @@ bool object_to_vim(Object obj, typval_T *tv, Error *err)
|
||||
case kObjectTypeTabpage:
|
||||
case kObjectTypeInteger:
|
||||
STATIC_ASSERT(sizeof(obj.data.integer) <= sizeof(varnumber_T),
|
||||
"Integer size must be <= VimL number size");
|
||||
"Integer size must be <= Vimscript number size");
|
||||
tv->v_type = VAR_NUMBER;
|
||||
tv->vval.v_number = (varnumber_T)obj.data.integer;
|
||||
break;
|
||||
|
@@ -42,10 +42,10 @@ typedef enum {
|
||||
/// Mask for all internal calls
|
||||
#define INTERNAL_CALL_MASK (((uint64_t)1) << (sizeof(uint64_t) * 8 - 1))
|
||||
|
||||
/// Internal call from VimL code
|
||||
/// Internal call from Vimscript code
|
||||
#define VIML_INTERNAL_CALL INTERNAL_CALL_MASK
|
||||
|
||||
/// Internal call from lua code
|
||||
/// Internal call from Lua code
|
||||
#define LUA_INTERNAL_CALL (VIML_INTERNAL_CALL + 1)
|
||||
|
||||
static inline bool is_internal_call(uint64_t channel_id)
|
||||
|
@@ -40,10 +40,10 @@
|
||||
# include "api/private/ui_events_metadata.generated.h"
|
||||
#endif
|
||||
|
||||
/// Start block that may cause VimL exceptions while evaluating another code
|
||||
/// Start block that may cause Vimscript exceptions while evaluating another code
|
||||
///
|
||||
/// Used when caller is supposed to be operating when other VimL code is being
|
||||
/// processed and that “other VimL code” must not be affected.
|
||||
/// Used when caller is supposed to be operating when other Vimscript code is being
|
||||
/// processed and that “other Vimscript code” must not be affected.
|
||||
///
|
||||
/// @param[out] tstate Location where try state should be saved.
|
||||
void try_enter(TryState *const tstate)
|
||||
@@ -806,7 +806,7 @@ bool api_object_to_bool(Object obj, const char *what, bool nil_value, Error *err
|
||||
} else if (obj.type == kObjectTypeInteger) {
|
||||
return obj.data.integer; // C semantics: non-zero int is true
|
||||
} else if (obj.type == kObjectTypeNil) {
|
||||
return nil_value; // caller decides what NIL (missing retval in lua) means
|
||||
return nil_value; // caller decides what NIL (missing retval in Lua) means
|
||||
} else {
|
||||
api_set_error(err, kErrorTypeValidation, "%s is not a boolean", what);
|
||||
return false;
|
||||
|
@@ -135,8 +135,8 @@ EXTERN PMap(int) tabpage_handles INIT(= MAP_INIT);
|
||||
|
||||
/// Structure used for saving state for :try
|
||||
///
|
||||
/// Used when caller is supposed to be operating when other VimL code is being
|
||||
/// processed and that “other VimL code” must not be affected.
|
||||
/// Used when caller is supposed to be operating when other Vimscript code is being
|
||||
/// processed and that “other Vimscript code” must not be affected.
|
||||
typedef struct {
|
||||
except_T *current_exception;
|
||||
msglist_T *private_msg_list;
|
||||
|
@@ -544,7 +544,7 @@ String nvim__get_lib_dir(void)
|
||||
///
|
||||
/// @param pat pattern of files to search for
|
||||
/// @param all whether to return all matches or only the first
|
||||
/// @param opts is_lua: only search lua subdirs
|
||||
/// @param opts is_lua: only search Lua subdirs
|
||||
/// @return list of absolute paths to the found files
|
||||
ArrayOf(String) nvim__get_runtime(Array pat, Boolean all, Dict(runtime) *opts, Error *err)
|
||||
FUNC_API_SINCE(8)
|
||||
@@ -941,7 +941,7 @@ fail:
|
||||
///
|
||||
/// @param buffer the buffer to use (expected to be empty)
|
||||
/// @param opts Optional parameters.
|
||||
/// - on_input: lua callback for input sent, i e keypresses in terminal
|
||||
/// - on_input: Lua callback for input sent, i e keypresses in terminal
|
||||
/// mode. Note: keypresses are sent raw as they would be to the pty
|
||||
/// master end. For instance, a carriage return is sent
|
||||
/// as a "\r", not as a "\n". |textlock| applies. It is possible
|
||||
@@ -1009,7 +1009,7 @@ static void term_write(char *buf, size_t size, void *data) // NOLINT(readabilit
|
||||
|
||||
static void term_resize(uint16_t width, uint16_t height, void *data)
|
||||
{
|
||||
// TODO(bfredl): lua callback
|
||||
// TODO(bfredl): Lua callback
|
||||
}
|
||||
|
||||
static void term_close(void *data)
|
||||
|
@@ -38,7 +38,7 @@
|
||||
/// Unlike |nvim_command()| this function supports heredocs, script-scope (s:),
|
||||
/// etc.
|
||||
///
|
||||
/// On execution error: fails with VimL error, updates v:errmsg.
|
||||
/// On execution error: fails with Vimscript error, updates v:errmsg.
|
||||
///
|
||||
/// @see |execute()|
|
||||
/// @see |nvim_command()|
|
||||
@@ -126,7 +126,7 @@ theend:
|
||||
|
||||
/// Executes an Ex command.
|
||||
///
|
||||
/// On execution error: fails with VimL error, updates v:errmsg.
|
||||
/// On execution error: fails with Vimscript error, updates v:errmsg.
|
||||
///
|
||||
/// Prefer using |nvim_cmd()| or |nvim_exec2()| over this. To evaluate multiple lines of Vim script
|
||||
/// or an Ex command directly, use |nvim_exec2()|. To construct an Ex command using a structured
|
||||
@@ -143,12 +143,12 @@ void nvim_command(String command, Error *err)
|
||||
try_end(err);
|
||||
}
|
||||
|
||||
/// Evaluates a VimL |expression|.
|
||||
/// Evaluates a Vimscript |expression|.
|
||||
/// Dictionaries and Lists are recursively expanded.
|
||||
///
|
||||
/// On execution error: fails with VimL error, updates v:errmsg.
|
||||
/// On execution error: fails with Vimscript error, updates v:errmsg.
|
||||
///
|
||||
/// @param expr VimL expression string
|
||||
/// @param expr Vimscript expression string
|
||||
/// @param[out] err Error details, if any
|
||||
/// @return Evaluation result or expanded object
|
||||
Object nvim_eval(String expr, Error *err)
|
||||
@@ -192,7 +192,7 @@ Object nvim_eval(String expr, Error *err)
|
||||
return rv;
|
||||
}
|
||||
|
||||
/// Calls a VimL function.
|
||||
/// Calls a Vimscript function.
|
||||
///
|
||||
/// @param fn Function name
|
||||
/// @param args Function arguments
|
||||
@@ -258,9 +258,9 @@ free_vim_args:
|
||||
return rv;
|
||||
}
|
||||
|
||||
/// Calls a VimL function with the given arguments.
|
||||
/// Calls a Vimscript function with the given arguments.
|
||||
///
|
||||
/// On execution error: fails with VimL error, updates v:errmsg.
|
||||
/// On execution error: fails with Vimscript error, updates v:errmsg.
|
||||
///
|
||||
/// @param fn Function to call
|
||||
/// @param args Function arguments packed in an Array
|
||||
@@ -272,12 +272,12 @@ Object nvim_call_function(String fn, Array args, Error *err)
|
||||
return _call_function(fn, args, NULL, err);
|
||||
}
|
||||
|
||||
/// Calls a VimL |Dictionary-function| with the given arguments.
|
||||
/// Calls a Vimscript |Dictionary-function| with the given arguments.
|
||||
///
|
||||
/// On execution error: fails with VimL error, updates v:errmsg.
|
||||
/// On execution error: fails with Vimscript error, updates v:errmsg.
|
||||
///
|
||||
/// @param dict Dictionary, or String evaluating to a VimL |self| dict
|
||||
/// @param fn Name of the function defined on the VimL dict
|
||||
/// @param dict Dictionary, or String evaluating to a Vimscript |self| dict
|
||||
/// @param fn Name of the function defined on the Vimscript dict
|
||||
/// @param args Function arguments packed in an Array
|
||||
/// @param[out] err Error details, if any
|
||||
/// @return Result of the function call
|
||||
@@ -363,7 +363,7 @@ typedef struct {
|
||||
typedef kvec_withinit_t(ExprASTConvStackItem, 16) ExprASTConvStack;
|
||||
/// @endcond
|
||||
|
||||
/// Parse a VimL expression.
|
||||
/// Parse a Vimscript expression.
|
||||
///
|
||||
/// @param[in] expr Expression to parse. Always treated as a single line.
|
||||
/// @param[in] flags Flags:
|
||||
|
@@ -412,11 +412,11 @@ void nvim_win_close(Window window, Boolean force, Error *err)
|
||||
/// @see |nvim_buf_call()|
|
||||
///
|
||||
/// @param window Window handle, or 0 for current window
|
||||
/// @param fun Function to call inside the window (currently lua callable
|
||||
/// @param fun Function to call inside the window (currently Lua callable
|
||||
/// only)
|
||||
/// @param[out] err Error details, if any
|
||||
/// @return Return value of function. NB: will deepcopy lua values
|
||||
/// currently, use upvalues to send lua references in and out.
|
||||
/// @return Return value of function. NB: will deepcopy Lua values
|
||||
/// currently, use upvalues to send Lua references in and out.
|
||||
Object nvim_win_call(Window window, LuaRef fun, Error *err)
|
||||
FUNC_API_SINCE(7)
|
||||
FUNC_API_LUA_ONLY
|
||||
|
Reference in New Issue
Block a user