improve hover for string/character literals
fix #1186