Implement folding and fix bugs

Fixed failed highlighting of any character after an ending string quote
because of failure to update variable after a call to styler:ForwardSetState

Change all the variables that didn't need to be global local.

Prettify hla.properties