std.d.
lexer
.isStringLiteral
public bool isStringLiteral(IdType type) pure nothrow @safe
Returns
true if the given ID type is for a string literal.