summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--prism/prism.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/prism/prism.c b/prism/prism.c
index 05c425864a..1f835e735d 100644
--- a/prism/prism.c
+++ b/prism/prism.c
@@ -8248,7 +8248,7 @@ parser_lex(pm_parser_t *parser) {
// If we haven't found an escape yet, then this buffer will be
// unallocated since we can refer directly to the source string.
- pm_token_buffer_t token_buffer = { 0 };
+ pm_token_buffer_t token_buffer = { { 0 }, 0 };
while (breakpoint != NULL) {
// If we hit a null byte, skip directly past it.
@@ -8424,7 +8424,7 @@ parser_lex(pm_parser_t *parser) {
// characters.
const uint8_t *breakpoints = lex_mode->as.regexp.breakpoints;
const uint8_t *breakpoint = pm_strpbrk(parser, parser->current.end, breakpoints, parser->end - parser->current.end);
- pm_token_buffer_t token_buffer = { 0 };
+ pm_token_buffer_t token_buffer = { { 0 }, 0 };
while (breakpoint != NULL) {
// If we hit a null byte, skip directly past it.
@@ -8613,7 +8613,7 @@ parser_lex(pm_parser_t *parser) {
// If we haven't found an escape yet, then this buffer will be
// unallocated since we can refer directly to the source string.
- pm_token_buffer_t token_buffer = { 0 };
+ pm_token_buffer_t token_buffer = { { 0 }, 0 };
while (breakpoint != NULL) {
// If we hit the incrementor, then we'll increment then nesting and
@@ -8874,7 +8874,7 @@ parser_lex(pm_parser_t *parser) {
}
const uint8_t *breakpoint = pm_strpbrk(parser, parser->current.end, breakpoints, parser->end - parser->current.end);
- pm_token_buffer_t token_buffer = { 0 };
+ pm_token_buffer_t token_buffer = { { 0 }, 0 };
bool was_escaped_newline = false;
while (breakpoint != NULL) {