make syntax&profile rules case insensitive
update context data after replace and select