matching closing '}' in tag reader plugins