[Editing/Folding] Fixed aBothe/D_Parser#108 - Refactored way of generating folding regions