xtext-core/org.eclipse.xtext
cwehrheim 8d835bc5fd [bug#489904] Fix partial formatting on single line
If a DSL file is only partially formatted it is possible that the
ITextReplacement is not fully contained in an allowed ITextRegion but
they overlap.

Modified method 'TextReplacerContext.isInRequestedRange(...)' to not
only check for containment but also for intersection. To check for
intersection a private method
'TextReplacerContext.doIntersect(...)' was added.

Added PartialFormattingTest test case and formatter
described in the bug.

Signed-off-by: Christian Wehrheim <christian.wehrheim@itemis.de>
Also-by: Karsten Thoms <karsten.thoms@itemis.de>
2019-04-05 13:16:22 +02:00
..
.settings [#221] Fixed Templats 2018-08-06 10:00:40 +02:00
emf-gen/org/eclipse/xtext [grammar] introduced annotations to parser, terminal, and enum rules paving the way for @Override annotations as desired by #121, updated generated + affected artifacts and tests 2016-10-18 09:54:44 +02:00
META-INF [eclipse/xtext#1414] prepared master for version 2.18.0 2019-03-05 16:47:14 +01:00
org/eclipse/xtext [grammar] introduced annotations to parser, terminal, and enum rules paving the way for @Override annotations as desired by #121, updated generated + affected artifacts and tests 2016-10-18 09:54:44 +02:00
packrat/org/eclipse/xtext Moved projects to root of repository 2016-06-14 08:30:25 +02:00
schema Moved projects to root of repository 2016-06-14 08:30:25 +02:00
src [bug#489904] Fix partial formatting on single line 2019-04-05 13:16:22 +02:00
src-gen/org/eclipse/xtext Bootstrap Xtext 2019-02-05 14:21:50 +01:00
xtend-gen/org/eclipse/xtext fixed some javadocs 2019-02-10 22:25:11 +01:00
.classpath Make bin/main also the default output directory to avoid buildship confusion 2019-02-10 14:55:03 +01:00
.cvsignore Moved projects to root of repository 2016-06-14 08:30:25 +02:00
.gitignore Remove redundant .gitignore rules 2016-06-14 15:31:26 +02:00
.project gradleprojectbuilder added by Buildship project import 2017-07-01 23:09:36 +02:00
about.html Moved projects to root of repository 2016-06-14 08:30:25 +02:00
about.ini Moved projects to root of repository 2016-06-14 08:30:25 +02:00
about.mappings Moved projects to root of repository 2016-06-14 08:30:25 +02:00
about.properties Update copyright 2018-05-15 06:10:10 +02:00
build.gradle [eclipse/xtext#1249] use bom for version management (#988) 2019-01-11 16:41:50 +01:00
modeling32.png Moved projects to root of repository 2016-06-14 08:30:25 +02:00
plugin.xml [eclipse/xtext#1160] Update copyright date range 2018-01-15 16:28:39 +01:00