aboutsummaryrefslogtreecommitdiff
path: root/core/ext
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-07-12 12:49:30 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2009-07-12 12:49:30 -0400
commit070f12d6eef343179335d12686c24f8055c2514d (patch)
treebe54f4c787825ed85788cddd50fdb4c43966d7d1 /core/ext
parent741ce69b41705b7ad048283e6893ebcb693326fc (diff)
downloadtextadept-070f12d6eef343179335d12686c24f8055c2514d.tar.gz
textadept-070f12d6eef343179335d12686c24f8055c2514d.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)