|
if true then pcall(function() print[[ This sentence is the end of the paragraph.]] end) end But it gets auto-indented into code with not only bad indentation, but also completely different behavior (the code now prints " This sentence is the\n end of the paragraph."): if true then pcall(function() print[[ This sentence is the end of the paragraph.]] end) end Since I've been doing a bunch of work with dynamically generated Lua code, this particular issue is actually something that has bothered me a lot. It's really more of a Vim problem than a Lua problem though. If you want Vim's default Lua indentation to improve, you'd need to get a patch to this file approved: |
Attachment:
signature.asc
Description: Message signed with OpenPGP