Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 369980

Summary: Add support for continue statement
Product: [Tools] LDT Reporter: Marc-André Laperle <malaperle>
Component: LuaDevelopmentToolsAssignee: Project Inbox <ldt-inbox>
Status: NEW --- QA Contact:
Severity: enhancement    
Priority: P5 CC: contact
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Whiteboard:

Description Marc-André Laperle CLA 2012-01-27 12:45:34 EST
Adding continue to Lua is a common modification to Lua. See http://lua-users.org/wiki/LuaPowerPatches
Unfortunately, LDT doesn't parse it correctly and the Outline view becomes empty as soon as a continue is used in a file. This is a big problem for us since most of the bigger scripts we have contain such continue statements and those are the scripts that need an Outline view the most.

I see 2 options:
1. Add support in LDT itself (with a preference?)
2. Add an extension point that can be used to allow LDT to parse modified Lua correctly.

Silly sample code:

function foo()
  for i=0, 10 do
    continue
  end
end

Outline disappears, continue has no coloring.
Comment 1 Benjamin Cabé CLA 2012-02-01 09:45:40 EST
I have discussed this matter with Fabien (the main developer of Metalua), he is suggesting that the following changes in metalua should "fix" the support for continue :

mlp.lexer :add 'continue'
mlp.stat :add{ "continue", builder=function() return { } end }