Skip to content

Commit

Permalink
works
Browse files Browse the repository at this point in the history
  • Loading branch information
burner committed Jul 23, 2024
1 parent c18bf60 commit a8b9990
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion source/graphql/lexer.d
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a8b9990

Please sign in to comment.