From 78990df4f114c45adc7fd2678ffaedf0c4124d95 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Mon, 29 Apr 2013 16:13:59 -0400 Subject: More code cleanup. "local buffer = buffer" and similar optimizations are not needed since lexing the buffer is much more expensive and reaction time is limited by how fast the keyboard can submit key presses. --- 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 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 } -- cgit v1.2.3