aboutsummaryrefslogtreecommitdiff
path: root/core
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2020-03-17 15:03:09 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2020-03-17 15:03:09 -0400
commit573c184b20dac1e8d5d5b659a04a2ea9744d6352 (patch)
tree13ff283596c683c15d5b54be8b4471421ea27a94 /core
parent4a4fa3992ea197e7e381019630454fafec1f78e9 (diff)
downloadtextadept-573c184b20dac1e8d5d5b659a04a2ea9744d6352.tar.gz
textadept-573c184b20dac1e8d5d5b659a04a2ea9744d6352.zip
Updated LuaDoc.
Diffstat (limited to 'core')
-rw-r--r--core/._M.luadoc17
1 files changed, 8 insertions, 9 deletions
diff --git a/core/._M.luadoc b/core/._M.luadoc
index bc6f81cf..80b127cd 100644
--- a/core/._M.luadoc
+++ b/core/._M.luadoc
@@ -65,11 +65,10 @@
-- properties. For example:
--
-- events.connect(events.LEXER_LOADED, function(lexer)
--- if lexer == 'python' then
--- buffer.tab_width = 4
--- buffer.use_tabs = false
--- buffer.view_ws = buffer.WS_VISIBLEALWAYS
--- end
+-- if lexer ~= 'python' then return end
+-- buffer.tab_width = 4
+-- buffer.use_tabs = false
+-- buffer.view_ws = buffer.WS_VISIBLEALWAYS
-- end
--
-- ## Autocompletion and Documentation
@@ -95,12 +94,12 @@
--
-- ## Commands
--
--- Additional editing features for the language can be useful. For example, the
--- [C](#_M.ansi_c) module has a feature to add a ';' to the end of the current
--- line and insert a new line. This command is bound to the `Shift+Enter` (`⇧↩`
+-- Additional editing features for the language can be useful. For example, a
+-- C++ module might have a feature to add a ';' to the end of the current line
+-- and insert a new line. This command could be bound to the `Shift+Enter` (`⇧↩`
-- on Mac OSX | `S-Enter` in curses) key for easy access:
--
--- keys.ansi_c = {
+-- keys.cpp = {
-- ['s\n'] = function()
-- buffer:line_end()
-- buffer:add_text(';')