aboutsummaryrefslogtreecommitdiff
path: root/modules/cpp
diff options
context:
space:
mode:
Diffstat (limited to 'modules/cpp')
-rw-r--r--modules/cpp/init.lua14
1 files changed, 7 insertions, 7 deletions
diff --git a/modules/cpp/init.lua b/modules/cpp/init.lua
index 5d62691a..0adf61cb 100644
--- a/modules/cpp/init.lua
+++ b/modules/cpp/init.lua
@@ -23,17 +23,17 @@ local M = {}
-- from *`_USERHOME`/modules/cpp/api*.
module('_M.cpp')]]
-local m_editing, m_run = _M.textadept.editing, _M.textadept.run
-- Comment string tables use lexer names.
-m_editing.comment_string.cpp = '//'
+_M.textadept.editing.comment_string.cpp = '//'
+
-- Compile and Run command tables use file extensions.
-m_run.compile_command.c =
+_M.textadept.run.compile_command.c =
'gcc -pedantic -Os -o "%(filename_noext)" %(filename)'
-m_run.compile_command.cpp =
+_M.textadept.run.compile_command.cpp =
'g++ -pedantic -Os -o "%(filename_noext)" %(filename)'
-m_run.run_command.c = '%(filedir)%(filename_noext)'
-m_run.run_command.cpp = '%(filedir)%(filename_noext)'
-m_run.error_detail.c = {
+_M.textadept.run.run_command.c = '%(filedir)%(filename_noext)'
+_M.textadept.run.run_command.cpp = '%(filedir)%(filename_noext)'
+_M.textadept.run.error_detail.c = {
pattern = '^(.-):(%d+): (.+)$',
filename = 1, line = 2, message = 3
}