Skip GraphQL "ignored tokens" (whitespace, commas, comments). */
| 976 | |
| 977 | /* Skip GraphQL "ignored tokens" (whitespace, commas, comments). */ |
| 978 | static const char *gql_skip_ignored(const char *p) { |
| 979 | for (;;) { |
| 980 | while (*p == ' ' || *p == '\t' || *p == '\n' || *p == '\r' || *p == ',') { |
| 981 | p++; |
| 982 | } |
| 983 | if (*p != '#') { |
| 984 | return p; |
| 985 | } |
| 986 | p = gql_skip_opaque(p); |
| 987 | } |
| 988 | } |
| 989 | |
| 990 | /* Copy the Name token at p (bounded). Returns false when p is not a Name. */ |
| 991 | static bool gql_copy_name(const char *p, char *name_buf, size_t name_sz) { |
no test coverage detected