From f905f1e4d1c77410931dc5ebfd8bcf466864a3e2 Mon Sep 17 00:00:00 2001 From: Bruce Hill Date: Mon, 19 Jan 2026 20:51:26 -0500 Subject: Allow parsing `123.foo()` as `(123).foo()` --- src/parse/utils.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/parse/utils.c') diff --git a/src/parse/utils.c b/src/parse/utils.c index 03e0ebcd..2df3f1a9 100644 --- a/src/parse/utils.c +++ b/src/parse/utils.c @@ -57,6 +57,12 @@ size_t match(const char **pos, const char *target) { return len; } +bool is_xid_start_next(const char *pos) { + ucs4_t point = 0; + u8_next(&point, (const uint8_t *)pos); + return uc_is_property_xid_start(point); +} + bool is_xid_continue_next(const char *pos) { ucs4_t point = 0; u8_next(&point, (const uint8_t *)pos); -- cgit v1.2.3