From 589db5e69472a5fd731577ef426b26aa3a9f025b Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 4 Aug 2020 18:45:42 -0400 Subject: Try to avoid using `lexer` as a string, as it overshadows the `lexer` module. --- core/._M.luadoc | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'core/._M.luadoc') diff --git a/core/._M.luadoc b/core/._M.luadoc index 20ea1c01..e9d4bf18 100644 --- a/core/._M.luadoc +++ b/core/._M.luadoc @@ -42,8 +42,8 @@ -- files. However, it does not know all of them, and the ones that it does know -- may not be completely accurate in all cases. Compile and run commands are -- read from the [`textadept.run.compile_commands`]() and --- [`textadept.run.run_commands`]() tables using the appropriate lexer key, and --- thus can be defined or modified. For Lua, it would look like: +-- [`textadept.run.run_commands`]() tables using the appropriate lexer name key, +-- and thus can be defined or modified. For Lua, it would look like: -- -- textadept.run.compile_commands.lua = 'luac "%f"' -- textadept.run.run_commands.lua = 'lua "%f"' @@ -64,8 +64,8 @@ -- `events.LEXER_LOADED` to change this and any other language-specific editor -- properties. For example: -- --- events.connect(events.LEXER_LOADED, function(lexer) --- if lexer ~= 'python' then return end +-- events.connect(events.LEXER_LOADED, function(name) +-- if name ~= 'python' then return end -- buffer.tab_width = 4 -- buffer.use_tabs = false -- view.view_ws = view.WS_VISIBLEALWAYS -- cgit v1.2.3