| Summary: | [Documentation] Bug in code snippet for semantic highlighting | ||
|---|---|---|---|
| Product: | [Modeling] TMF | Reporter: | Lothar Wendehals <lothar.wendehals> |
| Component: | Xtext | Assignee: | Jan Koehnlein <jan> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | trivial | ||
| Priority: | P3 | CC: | jan, sebastian.zarnekow, tmf.xtext-inbox |
| Version: | 1.0.0 | Flags: | sebastian.zarnekow:
helios+
|
| Target Milestone: | SR1 | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
Fixed in HEAD. Closing bug which were set to RESOLVED before Eclipse Neon.0. |
Build Identifier: 20100617-1415 The code in the snippet is inconsistent: for (AbstractNode abstractNode : allNodes) { if (abstractNode.getGrammarElement() instanceof CrossReference) { >>> acceptor.addPosition(node.getOffset(), node.getLength(), <<< MyHighlightingConfiguration.CROSS_REF); } } should be: >>> acceptor.addPosition(abstractNode.getOffset(), abstractNode.getLength(), <<< Reproducible: Always