From 21fe6139c683240c6be4718e448c4915b2fc1021 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Wed, 11 Mar 2020 22:50:30 -0400 Subject: Replaced `buffer.style_name` table with `buffer:name_of_style()`. This requires Scintilla changeset 429993cf4429. --- core/.buffer.luadoc | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'core/.buffer.luadoc') diff --git a/core/.buffer.luadoc b/core/.buffer.luadoc index ec97e5eb..f7670b7b 100644 --- a/core/.buffer.luadoc +++ b/core/.buffer.luadoc @@ -795,8 +795,6 @@ -- Table of flags that indicate whether or not text is italic for style -- numbers from `0` to `255`. -- The default values are `false`. --- @field style_name (table, Read-only) --- Table of style names for style numbers from `0` to `255`. -- @field style_size (table) -- Table of font sizes of text for style numbers from `0` to `255`. -- @field style_underline (table) @@ -2382,6 +2380,13 @@ function multi_edge_add_line(buffer, column, color) end -- @param buffer A buffer. function multi_edge_clear_all(buffer) end +--- +-- Returns the name of style number *style*, which is between `0` and `255`. +-- @param buffer A buffer. +-- @param style_num The style number between `0` and `255` to get the name of. +-- @return string +function name_of_style(buffer, style) end + --- -- Types a new line at the caret position according to [`buffer.eol_mode`](). -- @param buffer A buffer. @@ -3311,7 +3316,6 @@ function set_theme(buffer, name, props) end -- * line_from_index_position -- * load_lexer_library -- * mouse_wheel_captures --- * name_of_style -- * named_styles -- * null -- * point_x_from_position -- cgit v1.2.3