diff options
author | mitchell <70453897+667e-11@users.noreply.github.com> | 2010-11-23 19:09:21 -0500 |
---|---|---|
committer | mitchell <70453897+667e-11@users.noreply.github.com> | 2010-11-23 19:09:21 -0500 |
commit | 5f29cb8190dbee6bb10b4eb904c8c39750de352d (patch) | |
tree | ef9d178b4834087d829702d4894ec3b9330f3c0b /themes | |
parent | 1f3bbef0357b89f82a65d1e67caa1980eee3f40b (diff) |
Code cleanup.
Also modified the editing module's enclose() and select_enclosed() functions.
Diffstat (limited to 'themes')
-rw-r--r-- | themes/dark/buffer.lua | 6 | ||||
-rw-r--r-- | themes/dark/view.lua | 10 | ||||
-rw-r--r-- | themes/light/buffer.lua | 6 | ||||
-rw-r--r-- | themes/light/view.lua | 10 | ||||
-rw-r--r-- | themes/scite/buffer.lua | 6 | ||||
-rw-r--r-- | themes/scite/view.lua | 4 |
6 files changed, 21 insertions, 21 deletions
diff --git a/themes/dark/buffer.lua b/themes/dark/buffer.lua index 12a4e55b..8eb5971d 100644 --- a/themes/dark/buffer.lua +++ b/themes/dark/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/dark/view.lua b/themes/dark/view.lua index c3c68edf..5f9fb4b2 100644 --- a/themes/dark/view.lua +++ b/themes/dark/view.lua @@ -4,14 +4,14 @@ local c = _SCINTILLA.constants local buffer = buffer --- caret +-- Caret. buffer.caret_fore = 11184810 -- 0xAA | 0xAA << 8 | 0xAA << 16 buffer.caret_line_visible = true buffer.caret_line_back = 4473924 -- 0x44 | 0x44 << 8 | 0x44 << 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, 11184810) -- 0xAA | 0xAA << 8 | 0xAA << 16 buffer:set_fold_margin_hi_colour(1, 11184810) -- 0xAA | 0xAA << 8 | 0xAA << 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 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 diff --git a/themes/scite/buffer.lua b/themes/scite/buffer.lua index a93116db..d22dd934 100644 --- a/themes/scite/buffer.lua +++ b/themes/scite/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/scite/view.lua b/themes/scite/view.lua index d612377d..71b4be2f 100644 --- a/themes/scite/view.lua +++ b/themes/scite/view.lua @@ -8,13 +8,13 @@ buffer.margin_width_n[0] = 4 * buffer:text_width(c.STYLE_LINENUMBER, "9") buffer.caret_period = 500 --- fold margin +-- Fold margin. buffer.margin_type_n[2] = c.SC_MARGIN_SYMBOL buffer.margin_width_n[2] = 16 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_MINUS) buffer:marker_set_fore(c.SC_MARKNUM_FOLDEROPEN, 16777215) buffer:marker_set_back(c.SC_MARKNUM_FOLDEROPEN, 0) |