add end repeat for '.' and plugin