diff options
author | 2012-07-21 12:37:00 -0400 | |
---|---|---|
committer | 2012-07-21 12:37:00 -0400 | |
commit | 03f166897801c29e9357bce3214f02502eb7f252 (patch) | |
tree | 4066fae87259848d7d488bd39871964f6fd510fa /core/gui.lua | |
parent | 5a50a7e55b870ae66a6bb69fcd3a7bd1841f3d9b (diff) | |
download | textadept-03f166897801c29e9357bce3214f02502eb7f252.tar.gz textadept-03f166897801c29e9357bce3214f02502eb7f252.zip |
Converted some `buffer` "get" and "set" functions into properties.
Also updated to Scintilla 3.2.1.
Diffstat (limited to 'core/gui.lua')
-rw-r--r-- | core/gui.lua | 6 |
1 files changed, 3 insertions, 3 deletions
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 |