diff options
author | 2013-05-15 17:00:50 -0400 | |
---|---|---|
committer | 2013-05-15 17:00:50 -0400 | |
commit | d042865f672d6708df80250c9c59172148a55f11 (patch) | |
tree | a9c38372853d202d843564ebff9c6eeee60b88fb /modules/textadept/run.lua | |
parent | e2767cd40f0994ea97cb91fb9e9ceef58b8f3342 (diff) | |
download | textadept-d042865f672d6708df80250c9c59172148a55f11.tar.gz textadept-d042865f672d6708df80250c9c59172148a55f11.zip |
Rewrote theme implementation.
Themes are now just single files that share Textadept's Lua state.
Also added a new "settings.lua" that functions in place of buffer and view theme
files.
Requires latest Scintillua.
Diffstat (limited to 'modules/textadept/run.lua')
-rw-r--r-- | modules/textadept/run.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/textadept/run.lua b/modules/textadept/run.lua index 18577448..512d9ea9 100644 --- a/modules/textadept/run.lua +++ b/modules/textadept/run.lua @@ -10,8 +10,8 @@ local M = {} -- extension. -- -- [language-specific modules]: _M.html#Compile.and.Run --- @field MARK_ERROR_BACK (number) --- The background color, in "0xBBGGRR" format, used for a line containing a +-- @field ERROR_COLOR (string) +-- The name of the color in the current theme to mark a line containing a -- recognized run or compile error. -- @field cwd (string, Read-only) -- The working directory for the most recently executed compile or run @@ -35,7 +35,7 @@ local M = {} -- * `output`: The string output from the command. module('_M.textadept.run')]] -M.MARK_ERROR_BACK = not CURSES and 0x8080CC or 0x0000FF +M.ERROR_COLOR = not CURSES and 'color.light_red' or 'color.red' -- Events. events.COMPILE_OUTPUT, events.RUN_OUTPUT = 'compile_output', 'run_output' @@ -246,7 +246,7 @@ local CURSES_MARK = _SCINTILLA.constants.SC_MARK_CHARACTER + string.byte(' ') -- Sets view properties for error markers. local function set_error_properties() if CURSES then buffer:marker_define(MARK_ERROR, CURSES_MARK) end - buffer.marker_back[MARK_ERROR] = M.MARK_ERROR_BACK + buffer.marker_back[MARK_ERROR] = buffer.property_int[M.ERROR_COLOR] end if buffer then set_error_properties() end events.connect(events.VIEW_NEW, set_error_properties) |