Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 370684 - Code formatter should also format table values
Summary: Code formatter should also format table values
Status: VERIFIED FIXED
Alias: None
Product: LDT
Classification: Tools
Component: LuaDevelopmentTools (show other bugs)
Version: unspecified   Edit
Hardware: PC All
: P3 normal
Target Milestone: 0.8 M1   Edit
Assignee: Kevin KIN-FOO CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 366643
  Show dependency tree
 
Reported: 2012-02-06 03:22 EST by Kevin KIN-FOO CLA
Modified: 2012-02-27 06:25 EST (History)
2 users (show)

See Also:
kkinfoo: review? (sbernard)
contact: review? (contact)


Attachments
Patch enabling code formatting for table values (20.34 KB, patch)
2012-02-06 03:22 EST, Kevin KIN-FOO CLA
no flags Details | Diff
updated patch using the IFormatterControlManager correctly (20.92 KB, patch)
2012-02-07 15:28 EST, Benjamin Cabé CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Kevin KIN-FOO CLA 2012-02-06 03:22:47 EST
Created attachment 210553 [details]
Patch enabling code formatting for table values

So far code formatter do not format following code:

    local tab = {
    foo = 'bar'
    }

It would be nice to have:

    local tab = {
        foo = 'bar'
    }
Comment 1 Benjamin Cabé CLA 2012-02-07 15:28:21 EST
Created attachment 210691 [details]
updated patch using the IFormatterControlManager correctly
Comment 2 Benjamin Cabé CLA 2012-02-07 15:31:18 EST
Latest patch (attachment 210691 [details]) has been pushed to master (504f2b0).
Comment 3 Benjamin Cabé CLA 2012-02-09 09:01:47 EST
VERIFIED in   0.1.0.201202081927.