mirror of
https://github.com/neovim/neovim.git
synced 2025-10-06 18:06:30 +00:00
docs: also change "vimL" and "viml" to "Vimscript" (#24414)
This commit is contained in:
@@ -1250,8 +1250,8 @@ ArrayOf(Integer, 2) nvim_buf_get_mark(Buffer buffer, String name, Error *err)
|
||||
/// Otherwise a temporary scratch window (called the "autocmd window" for
|
||||
/// historical reasons) will be used.
|
||||
///
|
||||
/// This is useful e.g. to call vimL functions that only work with the current
|
||||
/// buffer/window currently, like |termopen()|.
|
||||
/// This is useful e.g. to call Vimscript functions that only work with the
|
||||
/// current 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
|
||||
|
@@ -402,7 +402,7 @@ typedef kvec_withinit_t(ExprASTConvStackItem, 16) ExprASTConvStack;
|
||||
/// stringified without "kExprNode" prefix.
|
||||
/// - "start": a pair [line, column] describing where node is "started"
|
||||
/// where "line" is always 0 (will not be 0 if you will be
|
||||
/// using nvim_parse_viml() on e.g. ":let", but that is not
|
||||
/// using this API on e.g. ":let", but that is not
|
||||
/// present yet). Both elements are Integers.
|
||||
/// - "len": “length” of the node. This and "start" are there for
|
||||
/// debugging purposes primary (debugging parser and providing
|
||||
|
@@ -1139,7 +1139,7 @@ static bool viml_func_is_fast(const char *name)
|
||||
if (fdef) {
|
||||
return fdef->fast;
|
||||
}
|
||||
// Not a vimL function
|
||||
// Not a Vimscript function
|
||||
return false;
|
||||
}
|
||||
|
||||
@@ -1149,7 +1149,7 @@ int nlua_call(lua_State *lstate)
|
||||
size_t name_len;
|
||||
const char *name = luaL_checklstring(lstate, 1, &name_len);
|
||||
if (!nlua_is_deferred_safe() && !viml_func_is_fast(name)) {
|
||||
return luaL_error(lstate, e_luv_api_disabled, "vimL function");
|
||||
return luaL_error(lstate, e_luv_api_disabled, "Vimscript function");
|
||||
}
|
||||
|
||||
int nargs = lua_gettop(lstate) - 1;
|
||||
|
Reference in New Issue
Block a user