lua-forward-regexp: make sure direction is `forward'

For middle tokens (then/else/elseif) default direction is backward.