aboutsummaryrefslogtreecommitdiffhomepage
path: root/core/keys.lua
diff options
context:
space:
mode:
authorGravatar mitchell <70453897+667e-11@users.noreply.github.com>2020-08-04 18:45:42 -0400
committerGravatar mitchell <70453897+667e-11@users.noreply.github.com>2020-08-04 18:45:42 -0400
commit589db5e69472a5fd731577ef426b26aa3a9f025b (patch)
treed12549d3fde89df845fa15345d8b30c44d317601 /core/keys.lua
parenta09459af7789d3c8aa781586478917cbb3ef99ae (diff)
Try to avoid using `lexer` as a string, as it overshadows the `lexer` module.
Diffstat (limited to 'core/keys.lua')
-rw-r--r--core/keys.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/keys.lua b/core/keys.lua
index d805b4f1..59a2314f 100644
--- a/core/keys.lua
+++ b/core/keys.lua
@@ -10,12 +10,12 @@ local M = {}
--
-- Define key bindings in the global `keys` table in key-value pairs. Each pair
-- consists of either a string key sequence and its associated command, a string
--- lexer language (from the *lexers/* directory) with a table of key sequences
--- and commands, a string key mode with a table of key sequences and commands,
--- or a key sequence with a table of more sequences and commands. The latter is
--- part of what is called a "key chain", to be discussed below. When searching
--- for a command to run based on a key sequence, Textadept considers key
--- bindings in the current key mode to have priority. If no key mode is active,
+-- lexer name (from the *lexers/* directory) with a table of key sequences and
+-- commands, a string key mode with a table of key sequences and commands, or a
+-- key sequence with a table of more sequences and commands. The latter is part
+-- of what is called a "key chain", to be discussed below. When searching for a
+-- command to run based on a key sequence, Textadept considers key bindings in
+-- the current key mode to have priority. If no key mode is active,
-- language-specific key bindings have priority, followed by the ones in the
-- global table. This means if there are two commands with the same key
-- sequence, Textadept runs the language-specific one. However, if the command