Skip to content

Commit

Permalink
Merge pull request sebastianbenz#11 from riederm/fix_issue#9_syntaxHi…
Browse files Browse the repository at this point in the history
…ghlightingFeatures

fix [SyntaxHighlighting] Highlighting of Features is broken borisbrodski#9
  • Loading branch information
ghaith authored May 1, 2017
2 parents 5b4474f + 282b883 commit 66c65eb
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
import org.eclipse.emf.ecore.EReference;
import org.eclipse.emf.ecore.EStructuralFeature;
import org.eclipse.xtext.TerminalRule;
import org.eclipse.xtext.ide.editor.syntaxcoloring.IHighlightedPositionAcceptor;
import org.eclipse.xtext.nodemodel.ICompositeNode;
import org.eclipse.xtext.nodemodel.INode;
import org.eclipse.xtext.nodemodel.util.NodeModelUtils;
import org.eclipse.xtext.resource.XtextResource;
import org.eclipse.xtext.ui.editor.syntaxcoloring.IHighlightedPositionAcceptor;
import org.eclipse.xtext.util.CancelIndicator;
import org.eclipse.xtext.xbase.XAbstractFeatureCall;
import org.eclipse.xtext.xbase.XExpression;
Expand Down Expand Up @@ -57,7 +57,6 @@ public class FeatureSemanticHighlightingCalculator extends JnarioHighlightingCal
public void provideHighlightingFor(XtextResource resource,
org.eclipse.xtext.ide.editor.syntaxcoloring.IHighlightedPositionAcceptor acceptor,
CancelIndicator cancelIndicator) {
// TODO Auto-generated method stub
super.provideHighlightingFor(resource, acceptor, cancelIndicator);
}

Expand Down Expand Up @@ -220,7 +219,8 @@ protected boolean noNodeModel(XtextResource resource) {
|| root(resource) == null;
}

protected void searchAndHighlightElements(XtextResource resource, IHighlightedPositionAcceptor acceptor) {
@Override
protected void searchAndHighlightElements(XtextResource resource, IHighlightedPositionAcceptor acceptor, CancelIndicator cancelIndicator) {
Implementation highlighter = new Implementation(acceptor);

TreeIterator<EObject> iterator = resource.getAllContents();
Expand Down

0 comments on commit 66c65eb

Please sign in to comment.