custom plugin to enclose lex tags in a placeholder