fix folding region end, add ending token to the range

Authored by cullmann on Dec 29 2018, 4:36 PM.