Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refinements starting with special characters are not correctly scanned #980

Closed
Siskin-Bot opened this issue Feb 15, 2020 · 1 comment
Closed
Labels
Datatype: refinement! Red compatibility Issues and changes required for compatibility with Red language Test.written Type.bug

Comments

@Siskin-Bot
Copy link
Collaborator

Submitted by: meijeru

some words like the ones for operators are not always correctly recognized in refinement context, see code below

>> type? '+
== word!
>> to-refinement '+
== /+
>> type? /+
** Script error: + is missing its value2 argument
>> type? /!
== refinement! ; this one works, and still it is an operator (but a unary one, admittedly)

Imported from: CureCode [ Version: alpha 62 Type: Bug Platform: All Category: Syntax Reproduce: Always Fixed-in:none ]
Imported from: metaeducation#980

Comments:

Rebolbot commented on Jun 28, 2009:

Submitted by: Carl

Interesting bug. The problem is with special chars of the lexicon (like +-,.#%).


Rebolbot commented on Jul 14, 2009:

Submitted by: BrianH

Note this code:

>> [/+]
== [/ +]

TRANSCODE and TO-BLOCK recognize "/+" as being 2 words, not one refinement.


Rebolbot commented on Feb 17, 2011:

Submitted by: BrianH

See #1478 for < and >, #1856 for +, - and . characters.


Rebolbot mentioned this issue on Jan 12, 2016:
Words starting with +, - or . won't load in refinement form


Rebolbot added the Type.bug on Jan 12, 2016


@hostilefork
Copy link

Resolved as part of the commitment to the definition of legal "arrow words" (words including > or <).

metaeducation/ren-c@5a617b8

@Oldes Oldes closed this as completed Nov 19, 2020
@Oldes Oldes added the Red compatibility Issues and changes required for compatibility with Red language label Nov 19, 2020
Oldes added a commit to Oldes/Rebol3 that referenced this issue Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Datatype: refinement! Red compatibility Issues and changes required for compatibility with Red language Test.written Type.bug
Projects
None yet
Development

No branches or pull requests

3 participants