aboutsummaryrefslogtreecommitdiffhomepage
path: root/test
diff options
context:
space:
mode:
authormitchell <unknown>2020-03-26 11:20:26 -0400
committermitchell <unknown>2020-03-26 11:20:26 -0400
commitacb7c70264348bc80c151bfc76c7b107e8db99ab (patch)
tree9721deff587ed5fd7c0e331ff5cbb2db1084e19c /test
parent6c09e990d1906553d1e328502aca5662ef43eb12 (diff)
downloadscintilla-mirror-acb7c70264348bc80c151bfc76c7b107e8db99ab.tar.gz
Switch to 1-based indices in Lua.
The only external, 3rd party lexers that would be affected are those implementing their own fold functions.
Diffstat (limited to 'test')
-rw-r--r--test/test_lexlua.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/test_lexlua.lua b/test/test_lexlua.lua
index f7bfd94c0..3436d9d19 100644
--- a/test/test_lexlua.lua
+++ b/test/test_lexlua.lua
@@ -159,7 +159,7 @@ function assert_fold_points(lex, code, expected_fold_points, initial_style)
})
end
lexer.property['fold'] = 1
- local levels = lex:fold(code, 0, 1, lexer.FOLD_BASE)
+ local levels = lex:fold(code, 1, 1, lexer.FOLD_BASE)
local j = 1
for i = 1, #levels do
if i == expected_fold_points[j] then
@@ -544,8 +544,8 @@ function test_fold_by_indentation()
else:
baz
]]
- lexer.fold_level = {[0] = lexer.FOLD_BASE} -- Scintilla normally creates this
- lexer.indent_amount = {[0] = 0} -- Scintilla normally creates this
+ lexer.fold_level = {lexer.FOLD_BASE} -- Scintilla normally creates this
+ lexer.indent_amount = {0} -- Scintilla normally creates this
local folds = {1, 3}
assert_fold_points(lex, code, folds)
end