Skip to content

Commit 7c84b60

Browse files
committed
CHANGE: allow issues like ### or #a# (Rebol2/Red compatibility)
resolves: Oldes/Rebol-issues#2583
1 parent e401edd commit 7c84b60

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/core/l-scan.c

+1
Original file line numberDiff line numberDiff line change
@@ -2149,6 +2149,7 @@ extern REBSER *Scan_Full_Block(SCAN_STATE *scan_state, REBYTE mode_char);
21492149
|| LEX_SPECIAL_PLUS == c
21502150
|| LEX_SPECIAL_MINUS == c
21512151
|| LEX_SPECIAL_TILDE == c
2152+
|| LEX_SPECIAL_POUND == c
21522153
))
21532154
return 0;
21542155

src/tests/units/lexer-test.r3

+10
Original file line numberDiff line numberDiff line change
@@ -496,6 +496,16 @@ Rebol [
496496
===end-group===
497497

498498

499+
===start-group=== "Issue"
500+
--test-- {###}
501+
;@@ https://github.com/Oldes/Rebol-issues/issues/2583
502+
--assert "###" = try [mold transcode/one {###}]
503+
--assert "#a#" = try [mold transcode/one {#a#}]
504+
--assert "#ab" = try [mold transcode/one {#ab}]
505+
506+
===end-group===
507+
508+
499509
===start-group=== "Char"
500510
--test-- {#"^(1)"}
501511
--assert #"^A" = load {#"^(1)"} ;@@ https://github.com/Oldes/Rebol-issues/issues/52

0 commit comments

Comments
 (0)