diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2013-09-27 21:12:05 -0400 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2013-09-27 21:12:05 -0400 |
commit | ef23e13ac57cf6a8bcb04ccce10d2e5b34feec06 (patch) | |
tree | 558d22791c4461fc5b765ce9ef57dd2273df73e0 /core/._M.luadoc | |
parent | 235a3a04d8cf7f80823d59a8ff6ec77fbf8e61d5 (diff) |
Integrated compile and run commands for most languages.
Compile and run should work out of the box for most languages. Also added a
warning marker, renamed `compile_command` and `run_command` tables to
`compile_commands` and `run_commands`, respectively, and renamed `error_details`
to `error_patterns`, changing its structure to just hold patterns.
Diffstat (limited to 'core/._M.luadoc')
-rw-r--r-- | core/._M.luadoc | 39 |
1 files changed, 19 insertions, 20 deletions
diff --git a/core/._M.luadoc b/core/._M.luadoc index a34223b3..d21b66de 100644 --- a/core/._M.luadoc +++ b/core/._M.luadoc @@ -26,28 +26,27 @@ -- #### Compile and Run -- -- The `Ctrl+Shift+R` and `Ctrl+R` (`⌘⇧R` and `⌘R` on Mac OSX | `M-^R` and `^R` --- in curses) key bindings compile and run code, respectively. In order for --- these to work for your language, the [`textadept.run.compile_command`][] and --- [`textadept.run.run_command`][] tables must have keys with the language's --- lexer name assigned to compile and run shell commands, respectively. Commands --- may contain [macros][]. For Lua, it would look like --- --- textadept.run.compile_command.lua = 'luac %(filename)' --- textadept.run.run_command = 'lua %(filename)' --- --- The module should also define error details in --- [`textadept.run.error_detail`][] so double-clicking on compile or runtime --- errors jumps to the error's location. The format for Lua errors looks like --- --- textadept.run.error_detail.lua = { --- pattern = '^lua: (.-):(%d+): (.+)$', --- filename = 1, line = 2, message = 3 --- } +-- in curses) key bindings compile and run code, respectively. If Textadept does +-- not execute the correct commands for your language, modify them in the +-- [`textadept.run.compile_commands`][] and [`textadept.run.run_commands`][] +-- tables using the appropriate lexer key. Commands may contain [macros][]. For +-- Lua, it would look like +-- +-- textadept.run.compile_commands.lua = 'luac "%(filename)"' +-- textadept.run.run_commands.lua = 'lua "%(filename)"' +-- +-- Double-clicking on compile or runtime errors jumps to the error's location. +-- If Textadept does not recognize your language's errors properly, add an error +-- pattern to [`textadept.run.error_patterns`][]. The Lua error pattern looks +-- like +-- +-- table.insert(textadept.run.error_patterns, 1, +-- '^luac?: (.-):(%d+): (.+)$') -- --- [`textadept.run.compile_command`]: textadept.run.html#compile_command --- [`textadept.run.run_command`]: textadept.run.html#run_command +-- [`textadept.run.compile_commands`]: textadept.run.html#compile_commands +-- [`textadept.run.run_commands`]: textadept.run.html#run_commands -- [macros]: textadept.run.html#execute --- [`textadept.run.error_detail`]: textadept.run.html#error_detail +-- [`textadept.run.error_patterns`]: textadept.run.html#error_patterns -- -- #### Buffer Properties -- |