diff options
| author | Bruce Hill <bruce@bruce-hill.com> | 2024-11-30 14:09:04 -0500 |
|---|---|---|
| committer | Bruce Hill <bruce@bruce-hill.com> | 2024-11-30 14:09:04 -0500 |
| commit | 566f97307dd5d960d4b9ce2f7308bc9f0ec016c1 (patch) | |
| tree | a75ddc65ea02724a8068a1c31c775df1830718e1 | |
| parent | fed63d8ea125c1d188df4f72af87dd59b7639458 (diff) | |
Fix parsing issue that allowed spaces around ':' for method calls
| -rw-r--r-- | parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1633,8 +1633,8 @@ ast_t *parse_method_call_suffix(parse_ctx_t *ctx, ast_t *self) { const char *start = self->start; const char *pos = self->end; - spaces(&pos); if (!match(&pos, ":")) return NULL; + if (*pos == ' ') return NULL; const char *fn = get_id(&pos); if (!fn) return NULL; spaces(&pos); |
