ref: fd6e1d4f4da61b1e6050e12a5d9bf41f422f5d1b
parent: f468624badf571a70dcab63d905a5f0182a2a313
author: Ori Bernstein <[email protected]>
date: Wed Oct 23 11:20:36 EDT 2013
Use newlines instead of junk for BOL/EOL matches I confused decimal and hex for the value of \n. Just use a cast '\n' this time, so that I don't make that mistake.
--- a/interp.myr
+++ b/interp.myr
@@ -94,7 +94,7 @@
*/
`Ibol:
trace(re, "\t%z:\tBol\n", thr.ip)
- if re.strp == 0 || str[re.strp -1] == 0x10
+ if re.strp == 0 || str[re.strp - 1] == '\n' castto(byte)
thr.ip++
step(re, tid)
else
@@ -103,7 +103,7 @@
;;
`Ieol:
trace(re, "\t%z:\tEol\n", thr.ip)
- if re.strp == str.len || str[re.strp] == 0x10
+ if re.strp == str.len || str[re.strp] == '\n' castto(byte)
step(re, tid)
else
kill(re, tid, "not end of line")