Skip to content

Commit fdc05fd

Browse files
committed
FIX: Bitset not allowed in to/thru block
Allow to/thru [bitset|...] in PARSE For example: ``` >> x: charset "x" y: charset "y" parse "y" [thru [x | y]] == true ``` Fixes: metaeducation/rebol-issues#2141 (cherry picked from commit 68a0e0a)
1 parent b940cbe commit fdc05fd

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
@@ -435,6 +435,11 @@ void Print_Parse_Index(REBCNT type, REBVAL *rules, REBSER *series, REBCNT index)
435435
}
436436
}
437437
}
438+
// bitset
439+
else if (IS_BITSET(item)) {
440+
if (Check_Bit(VAL_SERIES(item), ch1, !HAS_CASE(parse)))
441+
goto found1;
442+
}
438443
else if (ANY_STR(item)) {
439444
ch2 = VAL_ANY_CHAR(item);
440445
if (!HAS_CASE(parse)) ch2 = UP_CASE(ch2);

0 commit comments

Comments
 (0)