Skip to content

Commit

Permalink
FEAT: accept lit-words in face/flags blocks.
Browse files Browse the repository at this point in the history
  • Loading branch information
dockimbel committed Apr 6, 2017
1 parent 6fbef59 commit 07d1e4d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/view/view.red
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ find-flag?: routine [
value [red-value!]
tail [red-value!]
bool [red-logic!]
type [integer!]
found? [logic!]
][
switch TYPE_OF(facet) [
Expand All @@ -71,7 +72,8 @@ find-flag?: routine [
tail: block/rs-tail as red-block! facet

while [all [not found? value < tail]][
if TYPE_OF(value) = TYPE_WORD [
type: TYPE_OF(value)
if any [type = TYPE_WORD type = TYPE_LIT_WORD][
word: as red-word! value
found?: EQUAL_WORDS?(flag word)
]
Expand Down

0 comments on commit 07d1e4d

Please sign in to comment.