fix endhighlight type

thanks sean lee