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