What steps will reproduce the problem?
1.enter a line of text that would normally be indented eg
do (return) x=1 (return) end (return)
2.observe that it is not automatically indented
What is the expected output? What do you see instead?
Output should be:
do
x=1
end
Instead see
do
x=1
end
What version of the product are you using? On what operating system?
LuaForWindows_v5.1.4-45 (Scite Version 1.75, Lua 5,1), WindowsXP SP3
Please provide any additional information below.
It looks like the distribution is not configured to code indent. Not sure if
this is intentional.
A fix seems to be to modify the lua.properties file with
block.start.$(file.patterns.lua)=5 do function if else elseif repeat
block.end.$(file.patterns.lua)=5 end else elseif until
replacing
#~ statement.indent.$(file.patterns.lua)=5 do else function then
#~ statement.lookback.$(file.patterns.lua)=20
NOTE - modified file attached - also auto-indent seems to be incompatible with
indent.maintain.$(file.patterns.lua)=1
since this option attempts to keep previous unindented state.
Original issue reported on code.google.com by mdd...@gmail.com on 14 Nov 2011 at 6:39
Original issue reported on code.google.com by
mdd...@gmail.com
on 14 Nov 2011 at 6:39Attachments: