matching closing '}' in tag reader plagins