Skip to content

Commit

Permalink
FIX: Bitset not allowed in to/thru block
Browse files Browse the repository at this point in the history
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)
  • Loading branch information
Oldes committed Jun 27, 2018
1 parent b940cbe commit fdc05fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/core/u-parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,11 @@ void Print_Parse_Index(REBCNT type, REBVAL *rules, REBSER *series, REBCNT index)
}
}
}
// bitset
else if (IS_BITSET(item)) {
if (Check_Bit(VAL_SERIES(item), ch1, !HAS_CASE(parse)))
goto found1;
}
else if (ANY_STR(item)) {
ch2 = VAL_ANY_CHAR(item);
if (!HAS_CASE(parse)) ch2 = UP_CASE(ch2);
Expand Down

0 comments on commit fdc05fd

Please sign in to comment.