Regex: Use a template argument instead of a regular one for "forward"
Regex: Use a template argument instead of a regular one for "forward"

forward (which controls if we are compling for forward or backward
matching) is always statically known, and compilation will first
compile forward, then backward (if needed), so by having separate
compiled function we get rid of runtime branches.

casimir/kakoune,occivink/kakoune,lenormf/kakoune,Somasis/kakoune,jjthrash/kakoune,lenormf/kakoune,casimir/kakoune,Somasis/kakoune,alexherbo2/kakoune,danr/kakoune,Somasis/kakoune,jjthrash/kakoune,jkonecny12/kakoune,jjthrash/kakoune,occivink/kakoune,mawww/kakoune,mawww/kakoune,mawww/kakoune,casimir/kakoune,Somasis/kakoune,alexherbo2/kakoune,alexherbo2/kakoune,jkonecny12/kakoune,danr/kakoune,alexherbo2/kakoune,lenormf/kakoune,casimir/kakoune,danr/kakoune,jjthrash/kakoune,mawww/kakoune,occivink/kakoune,occivink/kakoune,danr/kakoune,jkonecny12/kakoune,lenormf/kakoune,jkonecny12/kakoune