diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2020-08-04 18:45:42 -0400 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2020-08-04 18:45:42 -0400 |
commit | 589db5e69472a5fd731577ef426b26aa3a9f025b (patch) | |
tree | d12549d3fde89df845fa15345d8b30c44d317601 /core/._M.luadoc | |
parent | a09459af7789d3c8aa781586478917cbb3ef99ae (diff) |
Try to avoid using `lexer` as a string, as it overshadows the `lexer` module.
Diffstat (limited to 'core/._M.luadoc')
-rw-r--r-- | core/._M.luadoc | 8 |
1 files changed, 4 insertions, 4 deletions
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 |