aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarshall Lochbaum <mwlochbaum@gmail.com>2020-07-01 13:48:08 -0400
committerMarshall Lochbaum <mwlochbaum@gmail.com>2020-07-01 13:48:08 -0400
commit01fe8ee5bbba4631b12290a6f50b5412b7aaf096 (patch)
tree84549ce1cf6bf916bca50461a3e9917af69b06d9
parentcd6e57e01d56e2baf7dac1bb208c0fd4605d984d (diff)
Simple/incomplete quote escaping
-rwxr-xr-xspec/dzref8
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/dzref b/spec/dzref
index 93d868b0..6034fa78 100755
--- a/spec/dzref
+++ b/spec/dzref
@@ -350,11 +350,11 @@ ProgressiveIndexOf ← {𝕨⊐○(≍˘⟜OccurrenceCount𝕨⊸⊐)𝕩}
'≡' Mod "≡"
- E_isdef ← (3≤≠)◶⟨0,∧´⟨chr," ","←↩"⟩∊˜¨3⊸↑⟩ ⍝ checks if line is a builtin redefinition
+ ⍝ checks if line is a builtin redefinition
+ E_isdef ← (3≤≠)◶⟨0,∧´⟨chr," ","←↩"⟩∊˜¨3⊸↑⟩
- E_proc ← { ⍝ replaces built-ins with their corresponding names
- c←chr⊐𝕩 ⋄ ∾c(≥⟜(≠chr))◶⟨⊑⟜names,⥊∘⊢⟩¨𝕩
- }
+ ⍝ replaces built-ins with their corresponding names
+ E_proc ← {l←≠chr ⋄ ∾ ((l×≠`𝕩∊"""'")+chr⊐𝕩) (≥⟜l)◶⟨⊑⟜names,⥊∘⊢⟩¨ 𝕩}
E_redef ← { ⍝ handles [fmd] [←↩]
tail ← E_proc 3↓𝕩 ⍝ must use old def