diff --git a/source/graphql/lexer.d b/source/graphql/lexer.d index 9c86838..dfae502 100644 --- a/source/graphql/lexer.d +++ b/source/graphql/lexer.d @@ -46,7 +46,21 @@ struct Lexer { private bool isTokenStop(const(char) c) const @safe { import std.ascii : isWhite; import std.algorithm.searching : canFind; - return isWhite(c) || "(){}!=|[:],@$".canFind(c); + return isWhite(c) + || c == '(' + || c == ')' + || c == '{' + || c == '}' + || c == '!' + || c == '=' + || c == '|' + || c == '[' + || c == ']' + || c == ']' + || c == ':' + || c == ',' + || c == '@' + || c == '$'; } private bool eatComment() @safe {