[fix] check if indexOf returned -1
[fix] do not move curret after first case parse
[dist] conditions/ternary direct parsing without regexp