Commit 8b8a2044
8b8a2044e5ebMerged
Yukihiro "Matz" Matsumoto <[email protected]> · 5 months ago · 2 files · ~2 modified
Description
analyze+codegen: BackReferenceReadNode for $&/$`/$'/$~/$+
Co-Authored-By: Claude Sonnet 4.6 [email protected]
Details
- Commit
- 8b8a2044e5eb
- Parent
- e8de2dd237fd
src/analyze.cmodifiedView file
@@ -1015,6 +1015,7 @@
10151015
}10161016
if (!strcmp(ty, "DefinedNode")) return TY_STRING; /* a label string, or nil (NULL) */10171017
if (!strcmp(ty, "NumberedReferenceReadNode")) return TY_STRING; /* $1..$9: capture, or nil (NULL) */1018+
if (!strcmp(ty, "BackReferenceReadNode")) return TY_STRING; /* $&/$`/$'/$~/$+: nullable string */10181019
if (!strcmp(ty, "ConstantPathNode")) {10191020
/* M::CONST -> resolve by the final path component (constants register10201021
under their unqualified name) */src/codegen.cmodifiedView file
Loading diff…