From de8e3bb7b6fedc0554cee20834001dd4a739cd88 Mon Sep 17 00:00:00 2001 From: Nick Hanley Date: Wed, 16 Nov 2022 13:28:50 -0500 Subject: fix miscellaneous spelling mistakes --- lua/lexers/README.md | 2 +- lua/vis.lua | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lua') diff --git a/lua/lexers/README.md b/lua/lexers/README.md index 1d74a8c..8d9e217 100644 --- a/lua/lexers/README.md +++ b/lua/lexers/README.md @@ -24,7 +24,7 @@ where `` corresponds to the filename without the `.lua` extension. # Adding new lexers To add a new lexer, start with the template quoted below or a lexer of a -similiar language. Read the +similar language. Read the [lexer module documentation](https://orbitalquark.github.io/scintillua/api.html#lexer). The [LPeg](http://www.inf.puc-rio.br/~roberto/lpeg/) introduction might also be useful. diff --git a/lua/vis.lua b/lua/vis.lua index 4f5122b..44be66b 100644 --- a/lua/vis.lua +++ b/lua/vis.lua @@ -25,7 +25,7 @@ -- file:insert(range.start, out) -- end -- return range.start -- new cursor location --- end, "Formating operator, filter range through fmt(1)") +-- end, "Formatting operator, filter range through fmt(1)") -- vis.operator_new = function(vis, key, operator, help) local id = vis:operator_register(operator) @@ -47,7 +47,7 @@ end -- The motion function will receive the @{Window} and an initial position -- (in bytes from the start of the file) as argument and is expected to -- return the resulting position. --- @tparam string key the key to associate with the new mption +-- @tparam string key the key to associate with the new option -- @tparam function motion the motion logic implemented as Lua function -- @tparam[opt] string help the single line help text as displayed in `:help` -- @treturn bool whether the new motion could be installed @@ -214,7 +214,7 @@ end -- value terminates the event propagation. The other handlers will not be called. -- -- @tparam string event the event name --- @tparam ... ... the remaining paramters are passed on to the handler +-- @tparam ... ... the remaining parameters are passed on to the handler events.emit = function(event, ...) local h = handlers[event] if not h then return end -- cgit v1.2.3