Community
Participate
Working Groups
Build Identifier: 1.0.0 Locators before Comments are ignored see http://www.eclipse.org/forums/index.php?t=msg&th=171127&start=0& Reproducible: Always Steps to Reproduce: 1. create the example project 2. modify the generated Formatting stub GreetingElements ge = f.getGreetingAccess(); c.setLinewrap(8).after(ge.getExclamationMarkKeyword_2()); 3. Test with the following Valid Text Hello Manuel ! // 8 Linewraps befor this comment Hello Michael !
This (or a very similar) problem also applies to before() directives. If I for instance format the following Domainmodel example: package foo00 { // NOTE THIS SL_COMMENT entity Foo00 { name : foo10.FOO10 } } I end up with: package foo00 { // NOTE THIS SL_COMMENT entity Foo00 { name : foo10.FOO10 } } Whereas the same example without the SL_COMMENT remains unchanged after formatting. Note: This was tested against Xtext 2.0 HEAD.
won't fix because it affects the old formatter infrastructure