Support quotes at the end of a raw string

Fix for KT-4650 Can't use double quote at the end of the raw string

#KT-4650 Fixed
Unused definitions removed from lexer