diff --git a/en/lexer.adoc b/en/lexer.adoc index 607e36e..9846bd8 100644 --- a/en/lexer.adoc +++ b/en/lexer.adoc @@ -204,15 +204,15 @@ The meaning of some arguments and return value __depends__ on the event. The fol |=== |Event | Type | Token | Return Value | Description |`prescan`| word! datatype!| pair!| `true`: scan + -`false`: drop| When a Red token has been recognized. +`false`: ignore| When a Red token has been recognized. |`scan`| word! datatype!| pair!| `true`: load + -`false`: drop| When a Red token type has been accurately recognized. +`false`: ignore| When a Red token type has been accurately recognized. |`load`| datatype!| | `true`: store + `false`: drop| When a Red token has been converted to a Red value. |`open`| datatype!| pair!| `true`: open + -`false`: drop| When a new block!, paren!, path!, map! or multiline string! is opened. +`false`: ignore| When a new block!, paren!, path!, map! or multiline string! is opened. |`close`| datatype!| pair!| `true`: close + -`false`: drop| When a new block!, paren!, path!, map! or multiline string! is closed. +`false`: ignore| When a new block!, paren!, path!, map! or multiline string! is closed. |`error`| datatype!| pair!| `true`: throw + `false`: ignore| When a syntax error occurs. |=== @@ -242,7 +242,7 @@ Notes: * If `false` is returned on a `scan` event, the corresponding `load` event will be skipped. -* If an `open` event is dropped, the corresponding `close` event should also be dropped. +* If an `open` event is ignored, the corresponding `close` event should also be ignored. Both events must return the same logical value or an error will be raised. See examples at https://github.com/red/code/tree/master/Scripts/lexer