aboutsummaryrefslogtreecommitdiff
path: root/core/.buffer.luadoc
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-04-26 12:14:23 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2013-04-26 12:14:23 -0400
commitc61bba557a11ef70b5fc4da6ec54e0730ff2a0ab (patch)
treee10d03ad0036621d97fb74b7ff39824c218f9198 /core/.buffer.luadoc
parent247e88c5ef3fd0ffd1d7df51c6be5e1c8ed5ba21 (diff)
downloadtextadept-c61bba557a11ef70b5fc4da6ec54e0730ff2a0ab.tar.gz
textadept-c61bba557a11ef70b5fc4da6ec54e0730ff2a0ab.zip
Handle new "lexer/current" format from LPeg lexer's API change.
Also refactored modules/textadept/mime_types.lua. Requires Scintillua r357.
Diffstat (limited to 'core/.buffer.luadoc')
-rw-r--r--core/.buffer.luadoc18
1 files changed, 10 insertions, 8 deletions
diff --git a/core/.buffer.luadoc b/core/.buffer.luadoc
index 6f57ac5b..8db47fd4 100644
--- a/core/.buffer.luadoc
+++ b/core/.buffer.luadoc
@@ -2837,14 +2837,6 @@ function save_as(buffer, utf8_filename) end
function close(buffer) end
---
--- Sets the name of the lexer used by the buffer to *lang*, loading its
--- language-specific module if the module exists.
--- @param buffer The global buffer.
--- @param lang The string language name to set.
--- @usage buffer.set_lexer(buffer, 'language_name')
-function set_lexer(buffer, lang) end
-
----
-- Returns the name of the lexer used by the buffer, or the name of the lexer
-- under the caret in a multiple-language lexer if *current* is `true`.
-- @param buffer The global buffer.
@@ -2854,6 +2846,16 @@ function set_lexer(buffer, lang) end
function get_lexer(buffer, current) end
---
+-- Sets the name of the lexer used by the buffer to *lang* or the auto-detected
+-- language and then loads the appropriate language-specific module if the
+-- module exists.
+-- @param buffer The global buffer.
+-- @param lang Optional string language name to set. If `nil`, attempts to
+-- auto-detect the buffer's language.
+-- @usage buffer.set_lexer(buffer, 'language_name')
+function set_lexer(buffer, lang) end
+
+---
-- Returns the name of style number *style_num*, in the range of `0` to `255`.
-- @param buffer The global buffer.
-- @param style_num The style number from `0` to `255` to get the name of.