org.eclipse.xtext.ui.editor.syntaxcoloring
Interface ISemanticHighlightingCalculator
- All Known Implementing Classes:
- MergingHighlightedPositionAcceptor, SemanticHighlighter, SemanticHighlightingCalculator, XbaseHighlightingCalculator, XtendHighlightingCalculator
public interface ISemanticHighlightingCalculator
Clients should implement an ISemanticHighlightingCalculator
to compute
the mapping from ranges in the input to the appropriate highlighting style.
- Author:
- Sebastian Zarnekow - Initial contribution and API
provideHighlightingFor
void provideHighlightingFor(XtextResource resource,
IHighlightedPositionAcceptor acceptor)
- Parameters:
resource
- the resource that will be highlighted. May be null
in some rare cases.acceptor
- used to announce the mapping from text-range to the style's id. The acceptor will never be null
.