From 03f166897801c29e9357bce3214f02502eb7f252 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Sat, 21 Jul 2012 12:37:00 -0400 Subject: Converted some `buffer` "get" and "set" functions into properties. Also updated to Scintilla 3.2.1. --- core/gui.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/gui.lua') diff --git a/core/gui.lua b/core/gui.lua index 32df8aeb..75051b04 100644 --- a/core/gui.lua +++ b/core/gui.lua @@ -260,11 +260,11 @@ events_connect(events.VIEW_NEW, function() events.emit(events.UPDATE_UI) end) local SETDIRECTFUNCTION = _SCINTILLA.properties.direct_function[1] local SETDIRECTPOINTER = _SCINTILLA.properties.doc_pointer[2] -local SETLEXERLANGUAGE = _SCINTILLA.functions.set_lexer_language[1] +local SETLEXERLANGUAGE = _SCINTILLA.properties.lexer_language[2] local function set_properties() local buffer = buffer -- Lexer. - buffer:set_lexer_language('lpeg') + buffer.lexer_language = 'lpeg' buffer:private_lexer_call(SETDIRECTFUNCTION, buffer.direct_function) buffer:private_lexer_call(SETDIRECTPOINTER, buffer.direct_pointer) buffer:private_lexer_call(SETLEXERLANGUAGE, 'container') @@ -331,7 +331,7 @@ end) local string_format = string.format local EOLs = { _L['CRLF'], _L['CR'], _L['LF'] } -local GETLEXERLANGUAGE = _SCINTILLA.functions.get_lexer_language[1] +local GETLEXERLANGUAGE = _SCINTILLA.properties.lexer_language[1] -- Sets docstatusbar text. events_connect(events.UPDATE_UI, function() local buffer = buffer -- cgit v1.2.3