[minor] add buftype and cword to rules builder