From a8b9990313aadcebb6ec64947a7e41da99ac4f08 Mon Sep 17 00:00:00 2001 From: Robert burner Schadek Date: Tue, 23 Jul 2024 15:22:41 +0200 Subject: [PATCH] works --- source/graphql/lexer.d | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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 {