aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/._M.luadoc12
-rw-r--r--core/keys.lua2
2 files changed, 7 insertions, 7 deletions
diff --git a/core/._M.luadoc b/core/._M.luadoc
index db7211f7..8f94a93d 100644
--- a/core/._M.luadoc
+++ b/core/._M.luadoc
@@ -99,13 +99,11 @@
-- and insert a new line. This command could be bound to the `Shift+Enter` (`⇧↩`
-- on macOS | `S-Enter` in the terminal version) key for easy access:
--
--- keys.cpp = {
--- ['s\n'] = function()
--- buffer:line_end()
--- buffer:add_text(';')
--- buffer:new_line()
--- end
--- }
+-- keys.cpp['shift+\n'] = function()
+-- buffer:line_end()
+-- buffer:add_text(';')
+-- buffer:new_line()
+-- end
--
-- When defining key bindings for other commands, you may make use of a `Ctrl+L`
-- (`⌘L` on macOS | `M-L` in the terminal version) keychain. Traditionally this
diff --git a/core/keys.lua b/core/keys.lua
index 2d4d8781..1746d8ff 100644
--- a/core/keys.lua
+++ b/core/keys.lua
@@ -218,4 +218,6 @@ end)
-- @name _G.keys
local keys]]
+for lexer in string.gmatch('actionscript ada apdl ansi_c antlr apl applescript asp autoit awk b_lang bash batch bibtex boo chuck cmake coffeescript context cpp crystal csharp css cuda desktop django dmd dockerfile dot eiffel elixir erlang faust fennel fish forth fortran fsharp gap gettext gherkin glsl gnuplot go groovy gtkrc haskell html icon idl inform ini Io java javascript jq json jsp latex ledger less lilypond lisp logtalk lua makefile matlab moonscript myrddin nemerle nim nsis objective_c pascal perl php pico8 pike pkgbuild prolog props protobuf ps pure python rails rc rebol rest rexx rhtml rstats ruby rust sass scala scheme smalltalk sml snobol4 sql tcl tex text toml vala vb vbscript verilog vhdl wsf xml yaml', '%S+') do M[lexer] = {} end
+
return M