ajaxorg / ace

Ace (Ajax.org Cloud9 Editor)

Home Page:https://ace.c9.io

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

folding lua mode - multline string or comment folding not right

vkvallinayagam opened this issue · comments

Describe the bug

in lua mode, folding of multi-line string or comment is not proper.
The fold range of multi-line string or comment is determined properly. This is known by the color coding as well the end-marker.

But when I fold, the collapsing is not proper. Only the first line is made invisible. Other lines till end-marker are visible.

Expected Behavior

All the lines till end-marker should collapse. But it does not do it that way.

Current Behavior

when you click the fold symbol in fold column, only first line collapses for multi-line comment or multi-line string in lua mode

Reproduction Steps

try these lua codes.

address = [[
ecr,
poonjeri
]]

--[[
nnbvbnvbn
vbnvbnvbn
bvnb
]]

Possible Solution

No response

Additional Information/Context

No response

Ace Version / Browser / OS / Keyboard layout

web version, kitchen-sink

#5533 with a fix was merged, it should be already available in current version of Ace.