SciTE
版本 3.6.2
Feb 15 2016 18:42:26
by Neil Hodgson.
Updated by Jos
现在使用的3.3.14.2版本+scite3.6.2
除了代码提示有乱码外,没出现过回车卡死的现象,所以一直在用这个版本。
看了下Common.luafunction Common:MatchWordAtStart(word, line)
local word_pos = editor.LineIndentPosition[line] + 1
local word_start = editor:WordStartPosition(word_pos)
local word_end = editor:WordEndPosition(word_pos)
local word_found = editor:textrange(word_start, word_end)
return string.lower(word_found) == string.lower(word), word_start, word_end, word_found
end -- MatchWordAtStart()
--
function Common:FirstWord(line)
local word_pos = editor.LineIndentPosition[line] + 1
local word_start = editor:WordStartPosition(word_pos)
local word_end = editor:WordEndPosition(word_pos)
local word_found = editor:textrange(word_start, word_end)
word_found = word_found:gsub("^%s*", "") -- remove leading white space
word_found = word_found:gsub("[\r\n]", "") -- remove newlines
return string.lower(word_found)
end -- WordAtStart()
没见到有改动过1或0.
感觉除了这个WordStartPosition,应该还有其它原因..... |