From 4b45cac860a6eb86815c5af85bd6adb6098ac6c7 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Tue, 24 Jan 2012 21:48:39 -0500 Subject: Rename module shortcut variables. --- modules/cpp/init.lua | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'modules/cpp') 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 } -- cgit v1.2.3