From 2052c77111051972d8171d27c8d4c501803e70d6 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 24 Aug 2013 14:26:24 -0400 Subject: Include Scintilla constants in `buffer`s. --- core/events.lua | 45 ++++++++++++++++++++------------------------- 1 file changed, 20 insertions(+), 25 deletions(-) (limited to 'core/events.lua') diff --git a/core/events.lua b/core/events.lua index ee058d5b..d01d5479 100644 --- a/core/events.lua +++ b/core/events.lua @@ -87,12 +87,11 @@ local M = {} -- * _`position`_: The position in the buffer double-clicked. -- * _`line`_: The line number double-clicked. -- * _`modifiers`_: A bit-mask of modifier keys held down. Modifiers are --- `_SCINTILLA.constants.SCMOD_ALT`, `_SCINTILLA.constants.SCMOD_CTRL`, --- `_SCINTILLA.constants.SCMOD_SHIFT`, and --- `_SCINTILLA.constants.SCMOD_META`. +-- `buffer.SCMOD_ALT`, `buffer.SCMOD_CTRL`, `buffer.SCMOD_SHIFT`, and +-- `buffer.SCMOD_META`. -- Note: If you set `buffer.rectangular_selection_modifier` to --- `_SCINTILLA.constants.SCMOD_CTRL`, the "Control" modifier is reported as --- *both* "Control" and "Alt" due to a Scintilla limitation with GTK+. +-- `buffer.SCMOD_CTRL`, the "Control" modifier is reported as *both* +-- "Control" and "Alt" due to a Scintilla limitation with GTK+. -- @field DWELL_END (string) -- Emitted after a `DWELL_START` when the mouse moves, a key is pressed, etc. -- Arguments: @@ -125,12 +124,11 @@ local M = {} -- -- * _`position`_: The position in the buffer clicked. -- * _`modifiers`_: A bit-mask of modifier keys held down. Modifiers are --- `_SCINTILLA.constants.SCMOD_ALT`, `_SCINTILLA.constants.SCMOD_CTRL`, --- `_SCINTILLA.constants.SCMOD_SHIFT`, and --- `_SCINTILLA.constants.SCMOD_META`. +-- `buffer.SCMOD_ALT`, `buffer.SCMOD_CTRL`, `buffer.SCMOD_SHIFT`, and +-- `buffer.SCMOD_META`. -- Note: If you set `buffer.rectangular_selection_modifier` to --- `_SCINTILLA.constants.SCMOD_CTRL`, the "Control" modifier is reported as --- *both* "Control" and "Alt" due to a Scintilla limitation with GTK+. +-- `buffer.SCMOD_CTRL`, the "Control" modifier is reported as *both* +-- "Control" and "Alt" due to a Scintilla limitation with GTK+. -- @field HOTSPOT_DOUBLE_CLICK (string) -- Emitted when double-clicking on text that is in a style with the hotspot -- attribute set. @@ -138,12 +136,11 @@ local M = {} -- -- * _`position`_: The position in the buffer double-clicked. -- * _`modifiers`_: A bit-mask of modifier keys held down. Modifiers are --- `_SCINTILLA.constants.SCMOD_ALT`, `_SCINTILLA.constants.SCMOD_CTRL`, --- `_SCINTILLA.constants.SCMOD_SHIFT`, and --- `_SCINTILLA.constants.SCMOD_META`. +-- `buffer.SCMOD_ALT`, `buffer.SCMOD_CTRL`, `buffer.SCMOD_SHIFT`, and +-- `buffer.SCMOD_META`. -- Note: If you set `buffer.rectangular_selection_modifier` to --- `_SCINTILLA.constants.SCMOD_CTRL`, the "Control" modifier is reported as --- *both* "Control" and "Alt" due to a Scintilla limitation with GTK+. +-- `buffer.SCMOD_CTRL`, the "Control" modifier is reported as *both* +-- "Control" and "Alt" due to a Scintilla limitation with GTK+. -- @field HOTSPOT_RELEASE_CLICK (string) -- Emitted after releasing the mouse after clicking on text that was in a -- style with the hotspot attribute set. @@ -156,12 +153,11 @@ local M = {} -- -- * _`position`_: The position in the buffer clicked. -- * _`modifiers`_: A bit-mask of modifier keys held down. Modifiers are --- `_SCINTILLA.constants.SCMOD_ALT`, `_SCINTILLA.constants.SCMOD_CTRL`, --- `_SCINTILLA.constants.SCMOD_SHIFT`, and --- `_SCINTILLA.constants.SCMOD_META`. +-- `buffer.SCMOD_ALT`, `buffer.SCMOD_CTRL`, `buffer.SCMOD_SHIFT`, and +-- `buffer.SCMOD_META`. -- Note: If you set `buffer.rectangular_selection_modifier` to --- `_SCINTILLA.constants.SCMOD_CTRL`, the "Control" modifier is reported as --- *both* "Control" and "Alt" due to a Scintilla limitation with GTK+. +-- `buffer.SCMOD_CTRL`, the "Control" modifier is reported as *both* +-- "Control" and "Alt" due to a Scintilla limitation with GTK+. -- @field INDICATOR_RELEASE (string) -- Emitted after releasing the mouse after clicking on text that had an -- indicator. @@ -186,12 +182,11 @@ local M = {} -- * _`position`_: The position of the start of the line in the buffer whose -- margin line was clicked. -- * _`modifiers`_: A bit-mask of modifier keys held down. Modifiers are --- `_SCINTILLA.constants.SCMOD_ALT`, `_SCINTILLA.constants.SCMOD_CTRL`, --- `_SCINTILLA.constants.SCMOD_SHIFT`, and --- `_SCINTILLA.constants.SCMOD_META`. +-- `buffer.SCMOD_ALT`, `buffer.SCMOD_CTRL`, `buffer.SCMOD_SHIFT`, and +-- `buffer.SCMOD_META`. -- Note: If you set `buffer.rectangular_selection_modifier` to --- `_SCINTILLA.constants.SCMOD_CTRL`, the "Control" modifier is reported as --- *both* "Control" and "Alt" due to a Scintilla limitation with GTK+. +-- `buffer.SCMOD_CTRL`, the "Control" modifier is reported as *both* +-- "Control" and "Alt" due to a Scintilla limitation with GTK+. -- @field MENU_CLICKED (string) -- Emitted after selecting a menu item. -- Arguments: -- cgit v1.2.3