diff options
author | 2010-08-17 00:28:31 -0400 | |
---|---|---|
committer | 2010-08-17 00:28:31 -0400 | |
commit | 3d4c3dc0cba751e6a765ea33f6780f8d1a3fca21 (patch) | |
tree | f86a91034ba90fe049cf4b73dac7c4883383d320 /core/.buffer.luadoc | |
parent | 63bc0f15b6f475b53e86e31e88119781c560ba77 (diff) | |
download | textadept-3d4c3dc0cba751e6a765ea33f6780f8d1a3fca21.tar.gz textadept-3d4c3dc0cba751e6a765ea33f6780f8d1a3fca21.zip |
Upgraded to Scintilla/SciTE 2.20.
Diffstat (limited to 'core/.buffer.luadoc')
-rw-r--r-- | core/.buffer.luadoc | 23 |
1 files changed, 21 insertions, 2 deletions
diff --git a/core/.buffer.luadoc b/core/.buffer.luadoc index 5a3c6c6f..427b3ffa 100644 --- a/core/.buffer.luadoc +++ b/core/.buffer.luadoc @@ -544,8 +544,6 @@ function buffer:get_property(property) function buffer:get_property_expanded() --- Returns the selected text. function buffer:get_sel_text() ---- Returns the name of the style associated with a style number. -function buffer:get_style_name(style_num) --- Returns the text matched by a tagged expression in a regexp search. function buffer:get_tag(tag_num) --- Returns all text in the document and its length. @@ -960,3 +958,24 @@ function buffer:save_as() -- If the buffer is dirty, the user is prompted to continue. The buffer is not -- saved automatically. It must be done manually. function buffer:close() + +--- +-- Replacement for buffer:set_lexer_language(). +-- Sets a buffer._lexer field so it can be restored without querying the +-- mime-types tables. Also if the user manually sets the lexer, it should be +-- restored. +-- Loads the language-specific module if it exists. +-- @param buffer The buffer to set the lexer language of. +-- @param lang The string language to set. +-- @usage buffer:set_lexer('language_name') +function buffer:set_lexer(lang) +--- +-- Replacement for buffer:get_lexer_language(). +-- @param buffer The buffer to get the lexer langugae of. +function buffer:get_lexer() +--- +-- Returns the name of the style associated with a style number. +-- @param buffer The buffer to get the style name of. +-- @param style_num A style number in the range 0 <= style_num < 256. +-- @see buffer.style_at +function buffer:get_style_name(style_num) |