}
} catch (TemplateException e) {
continue;
}
relavance = getRelevance(template, prefix);
if (template.matches(prefix, context.getContextType().getId()) && relavance > 0 && selectionText.length() == 0 || hasSelectionVariable && template.matches("", context.getContextType().getId())) {
if(inChevron && templatePattern.startsWith("<") && templatePattern.endsWith(">")){
region = getRegionNoChevrons(doc, offset, length);
context = createContext(viewer, region);
context.setVariable("selection", selectionText);
}