diff options
author | 2010-11-23 19:09:21 -0500 | |
---|---|---|
committer | 2010-11-23 19:09:21 -0500 | |
commit | 5f29cb8190dbee6bb10b4eb904c8c39750de352d (patch) | |
tree | ef9d178b4834087d829702d4894ec3b9330f3c0b /themes/light | |
parent | 1f3bbef0357b89f82a65d1e67caa1980eee3f40b (diff) |
Code cleanup.
Also modified the editing module's enclose() and select_enclosed() functions.
Diffstat (limited to 'themes/light')
-rw-r--r-- | themes/light/buffer.lua | 6 | ||||
-rw-r--r-- | themes/light/view.lua | 10 |
2 files changed, 8 insertions, 8 deletions
diff --git a/themes/light/buffer.lua b/themes/light/buffer.lua index 1bb9a7da..610d7f25 100644 --- a/themes/light/buffer.lua +++ b/themes/light/buffer.lua @@ -3,11 +3,11 @@ local buffer = buffer --- folding +-- Folding. buffer.property['fold'] = '1' buffer.property['fold.by.indentation'] = '1' --- tabs and indentation +-- Tabs and indentation. buffer.tab_width = 2 buffer.use_tabs = false buffer.indent = 2 @@ -15,6 +15,6 @@ buffer.tab_indents = true buffer.back_space_un_indents = true buffer.indentation_guides = 1 --- various +-- Various. buffer.auto_c_choose_single = true buffer.additional_selection_typing = true diff --git a/themes/light/view.lua b/themes/light/view.lua index 1a684d0b..d69e9ad2 100644 --- a/themes/light/view.lua +++ b/themes/light/view.lua @@ -4,14 +4,14 @@ local c = _SCINTILLA.constants local buffer = buffer --- caret +-- Caret. buffer.caret_fore = 3355443 -- 0x33 | 0x33 << 8 | 0x33 << 16 buffer.caret_line_visible = true buffer.caret_line_back = 14540253 -- 0xDD | 0xDD << 8 | 0xDD << 16 buffer:set_x_caret_policy(1, 20) -- CARET_SLOP buffer:set_y_caret_policy(13, 1) -- CARET_SLOP | CARET_STRICT | CARET_EVEN --- selection +-- Selection. buffer:set_sel_fore(1, 3355443) -- 0x33 | 0x33 << 8 | 0x33 << 16 buffer:set_sel_back(1, 10066329) -- 0x99 | 0x99 << 8 | 0x99 << 16 @@ -20,7 +20,7 @@ buffer.margin_width_n[0] = 4 + 3 * -- line number margin buffer.margin_width_n[1] = 0 -- marker margin invisible --- fold margin +-- Fold margin. buffer:set_fold_margin_colour(1, 13421772) -- 0xCC | 0xCC << 8 | 0xCC << 16 buffer:set_fold_margin_hi_colour(1, 13421772) -- 0xCC | 0xCC << 8 | 0xCC << 16 buffer.margin_type_n[2] = c.SC_MARGIN_SYMBOL @@ -28,7 +28,7 @@ buffer.margin_width_n[2] = 10 buffer.margin_mask_n[2] = c.SC_MASK_FOLDERS buffer.margin_sensitive_n[2] = true --- fold margin markers +-- Fold margin markers. buffer:marker_define(c.SC_MARKNUM_FOLDEROPEN, c.SC_MARK_ARROWDOWN) buffer:marker_set_fore(c.SC_MARKNUM_FOLDEROPEN, 0) buffer:marker_set_back(c.SC_MARKNUM_FOLDEROPEN, 0) @@ -41,7 +41,7 @@ buffer:marker_define(c.SC_MARKNUM_FOLDEREND, c.SC_MARK_EMPTY) buffer:marker_define(c.SC_MARKNUM_FOLDEROPENMID, c.SC_MARK_EMPTY) buffer:marker_define(c.SC_MARKNUM_FOLDERMIDTAIL, c.SC_MARK_EMPTY) --- various +-- Various. buffer.call_tip_use_style = 0 buffer:set_fold_flags(16) buffer.mod_event_mask = c.SC_MOD_CHANGEFOLD |