aboutsummaryrefslogtreecommitdiff
path: root/modules/cpp/init.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2012-01-24 21:48:39 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2012-01-24 21:48:39 -0500
commit4b45cac860a6eb86815c5af85bd6adb6098ac6c7 (patch)
tree7421a88a2b40f14b44f31ff750562c7e19bb876b /modules/cpp/init.lua
parentd6eb8cb3d6a968de8525633aa5cc8c304fdd6844 (diff)
downloadtextadept-4b45cac860a6eb86815c5af85bd6adb6098ac6c7.tar.gz
textadept-4b45cac860a6eb86815c5af85bd6adb6098ac6c7.zip
Rename module shortcut variables.
Diffstat (limited to 'modules/cpp/init.lua')
-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 eaa622a7..0bcf280f 100644
--- a/modules/cpp/init.lua
+++ b/modules/cpp/init.lua
@@ -24,17 +24,17 @@ module('_M.cpp')]]
--
-- * `sense`: The C/C++ [Adeptsense](_M.textadept.adeptsense.html).
-local Mediting, Mrun = _M.textadept.editing, _M.textadept.run
+local m_editing, m_run = _M.textadept.editing, _M.textadept.run
-- Comment string tables use lexer names.
-Mediting.comment_string.cpp = '//'
+m_editing.comment_string.cpp = '//'
-- Compile and Run command tables use file extensions.
-Mrun.compile_command.c =
+m_run.compile_command.c =
'gcc -pedantic -Os -o "%(filename_noext)" %(filename)'
-Mrun.compile_command.cpp =
+m_run.compile_command.cpp =
'g++ -pedantic -Os -o "%(filename_noext)" %(filename)'
-Mrun.run_command.c = '%(filedir)%(filename_noext)'
-Mrun.run_command.cpp = '%(filedir)%(filename_noext)'
-Mrun.error_detail.c = {
+m_run.run_command.c = '%(filedir)%(filename_noext)'
+m_run.run_command.cpp = '%(filedir)%(filename_noext)'
+m_run.error_detail.c = {
pattern = '^(.-):(%d+): (.+)$',
filename = 1, line = 2, message = 3
}