IRegion lineRegion = document.getLineInformationOfOffset(offset);
WodScanner scanner = WodScanner.newWODScanner();
scanner.setRange(document, lineRegion.getOffset(), lineRegion.getLength());
boolean foundToken = false;
RulePosition rulePosition = null;
while (!foundToken && (rulePosition = scanner.nextRulePosition()) != null) {
int tokenOffset = rulePosition.getTokenOffset();
if (offset == lineRegion.getOffset() && offset == tokenOffset) {
foundToken = true;
} else if (offset > tokenOffset && offset <= rulePosition.getTokenEndOffset()) {
foundToken = true;