aboutsummaryrefslogtreecommitdiff
path: root/core/ext
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-07-12 13:03:56 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2009-07-12 13:03:56 -0400
commit5a2757d809ea3bb7a27877b8ac7e071e322f9413 (patch)
tree94bc768cbb1b43bb360414ac417d449e7724eb66 /core/ext
parent6eb0af0fbf8c19ef9c73e6aba08e782cc7db745d (diff)
downloadtextadept-5a2757d809ea3bb7a27877b8ac7e071e322f9413.tar.gz
textadept-5a2757d809ea3bb7a27877b8ac7e071e322f9413.zip
Lua code cleanup.
Diffstat (limited to 'core/ext')
-rw-r--r--core/ext/mime_types.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/ext/mime_types.lua b/core/ext/mime_types.lua
index a1867437..7fb7fcab 100644
--- a/core/ext/mime_types.lua
+++ b/core/ext/mime_types.lua
@@ -45,11 +45,12 @@ end
---
-- [Local function] Replacement for buffer:set_lexer_language().
--- Sets a buffer._lexer field so it can be restored without querying the
+-- 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.
-- @param buffer The buffer to set the lexer language of.
-- @param lang The string language to set.
+-- @usage buffer:set_lexer('language_name')
local function set_lexer(buffer, lang)
buffer._lexer = lang
buffer:set_lexer_language(lang)