You are probably right. I based my code on INI lexer. Feel free to make any required updates. And whenever new version of this gem is released, I will test it in my own project :)