aboutsummaryrefslogtreecommitdiff
path: root/modules/cpp
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-08-26 22:36:10 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2013-08-26 22:36:10 -0400
commit92a1e1cae3029a3c4dde56c8dcc5d212fdc11e26 (patch)
tree53d4645ebc30698f4a782bc76232b0b54fe82507 /modules/cpp
parentacda712a50dbebafa295ccd07ce8186d9b82aa10 (diff)
downloadtextadept-92a1e1cae3029a3c4dde56c8dcc5d212fdc11e26.tar.gz
textadept-92a1e1cae3029a3c4dde56c8dcc5d212fdc11e26.zip
Renamed `_M.textadept` to `textadept`; `_M` is for language modules only now.
Diffstat (limited to 'modules/cpp')
-rw-r--r--modules/cpp/init.lua16
1 files changed, 8 insertions, 8 deletions
diff --git a/modules/cpp/init.lua b/modules/cpp/init.lua
index 646ca218..bfd8670c 100644
--- a/modules/cpp/init.lua
+++ b/modules/cpp/init.lua
@@ -18,27 +18,27 @@ local M = {}
-- + `Shift+Enter` (`⇧↩` | `S-Enter`)
-- Add ';' to the end of the current line and insert a newline.
-- @field sense
--- The C/C++ [Adeptsense](_M.textadept.adeptsense.html).
+-- The C/C++ [Adeptsense](textadept.adeptsense.html).
-- It loads user tags from *`_USERHOME`/modules/cpp/tags* and user apidocs
-- from *`_USERHOME`/modules/cpp/api*.
module('_M.cpp')]]
-- Compile and Run command tables use file extensions.
-_M.textadept.run.compile_command.c =
+textadept.run.compile_command.c =
'gcc -pedantic -Os -o "%(filename_noext)" %(filename)'
-_M.textadept.run.compile_command.cpp =
+textadept.run.compile_command.cpp =
'g++ -pedantic -Os -o "%(filename_noext)" %(filename)'
-_M.textadept.run.run_command.c = '%(filedir)%(filename_noext)'
-_M.textadept.run.run_command.cpp = '%(filedir)%(filename_noext)'
-_M.textadept.run.error_detail.c = {
+textadept.run.run_command.c = '%(filedir)%(filename_noext)'
+textadept.run.run_command.cpp = '%(filedir)%(filename_noext)'
+textadept.run.error_detail.c = {
pattern = '^(.-):(%d+): (.+)$',
filename = 1, line = 2, message = 3
}
-- Adeptsense.
-M.sense = _M.textadept.adeptsense.new('cpp')
-local as = _M.textadept.adeptsense
+M.sense = textadept.adeptsense.new('cpp')
+local as = textadept.adeptsense
M.sense.ctags_kinds = {
c = as.CLASS, d = as.FUNCTION, e = as.FIELD, f = as.FUNCTION, g = as.CLASS,
m = as.FIELD, s = as.CLASS, t = as.CLASS