aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlua
diff options
context:
space:
mode:
authormitchell <unknown>2019-10-12 17:13:14 -0400
committermitchell <unknown>2019-10-12 17:13:14 -0400
commit91d2e95542ee6a908b0adf46d420c1696ae31a9d (patch)
tree7a23d6748a720a42c3e6dc80080e8d9cfd26950d /lexlua
parentc8ba2886c0c819d8241b94ad8a065c456406bd71 (diff)
downloadscintilla-mirror-91d2e95542ee6a908b0adf46d420c1696ae31a9d.tar.gz
lexlua: Prevent double-counting of fold points on a single line.
If a fold word appears more than once on a line, ensure that each occurrence satisfies the fold point criteria, rather than just one of them.
Diffstat (limited to 'lexlua')
-rw-r--r--lexlua/lexer.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/lexlua/lexer.lua b/lexlua/lexer.lua
index 724240a04..27265e010 100644
--- a/lexlua/lexer.lua
+++ b/lexlua/lexer.lua
@@ -1342,7 +1342,7 @@ function M.fold(lexer, text, start_pos, start_line, start_level)
end
end
end
- s = line:find(symbol, s + 1, true)
+ s, e = line:find(symbol, s + 1, true)
end
end
folds[line_num] = prev_level