Improved escape character highlighting