Skip to content

Commit 68a0e0a

Browse files
committed
fix ticket 2141
Allow to/thru [bitset|...] in PARSE
1 parent 25033f8 commit 68a0e0a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/core/u-parse.c

+5
Original file line numberDiff line numberDiff line change
@@ -421,6 +421,11 @@ void Print_Parse_Index(REBCNT type, REBVAL *rules, REBSER *series, REBCNT index)
421421
if (!HAS_CASE(parse)) ch2 = UP_CASE(ch2);
422422
if (ch1 == ch2) goto found1;
423423
}
424+
// bitset
425+
else if (IS_BITSET(item)) {
426+
if (Check_Bit(VAL_SERIES(item), ch1, !HAS_CASE(parse)))
427+
goto found1;
428+
}
424429
else if (ANY_STR(item)) {
425430
ch2 = VAL_ANY_CHAR(item);
426431
if (!HAS_CASE(parse)) ch2 = UP_CASE(ch2);

0 commit comments

Comments
 (0)