Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion lib/interscript/isc/node_adapter.rb
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,13 @@ def resolve_charset(name)

@resolving << name
node =
if (imp = @imported[name])
# Stdlib alias values are regex fragments ("\d", "\b") —
# keep them as Alias nodes so the runtimes interpolate them raw;
# wrapping in Any escapes the backslashes ([\\d] matches a
# literal backslash or d).
if Interscript::Stdlib::ALIASES.key?(name)
Interscript::Node::Item::Alias.new(name)
elsif (imp = @imported[name])
data = imp.data
case data
when Interscript::Node::Item::Any
Expand Down
Loading