func lexRightDelim(l *lexer) stateFn {
	trimSpace := strings.HasPrefix(l.input[l.pos:], rightTrimMarker)
	if trimSpace {
		l.pos += trimMarkerLen
		l.ignore()
	}
	l.pos += Pos(len(l.rightDelim))
	l.emit(itemRightDelim)
	if trimSpace {
		l.pos += leftTrimLength(l.input[l.pos:])
		l.ignore()
	}
	return lexText
}
// lexRightDelim scans the right delimiter, which is known to be present, possibly with a trim marker.
lexRightDelim scans the right delimiter, which is known to be present, possibly with a trim marker.
// lexRightDelim scans the right delimiter which is known to be present possibly with a trim marker .
func lexRightDelim(l *lexer) stateFn {
	trimSpace := strings.HasPrefix(l.input[l.pos:], rightTrimMarker)
	if trimSpace {
		l.pos += trimMarkerLen
		l.ignore()
	}
	l.pos += Pos(len(l.rightDelim))
	l.emit(itemRightDelim)
	if trimSpace {
		l.pos += leftTrimLength(l.input[l.pos:])
		l.ignore()
	}
	return lexText
}
func lexRightDelim ( l * lexer ) stateFn { trimSpace := strings . HasPrefix ( l . input [ l . pos : ] , rightTrimMarker ) if trimSpace { l . pos += trimMarkerLen l . ignore ( ) } l . pos += Pos ( len ( l . rightDelim ) ) l . emit ( itemRightDelim ) if trimSpace { l . pos += leftTrimLength ( l . input [ l . pos : ] ) l . ignore ( ) } return lexText }
lexRightDelim scans the right delimiter, which is known to be present, possibly with a trim marker.
lexRightDelim scans the right delimiter which is known to be present possibly with a trim marker .