Maybe consider a replacement for the current line based parser, as mentioned in [this comment](https://github.com/geostyler/geostyler-mapfile-parser/pull/33#issuecomment-825534373)