Permalink
Browse files

FEAT: demo script updated to use path notation.

  • Loading branch information...
1 parent 9c4e3b4 commit 88fd1ff1da855a383e91566903fe373ea4d41eca @dockimbel dockimbel committed Nov 8, 2012
Showing with 6 additions and 6 deletions.
  1. +6 −6 red/tests/demo.red
View
12 red/tests/demo.red
@@ -27,10 +27,10 @@ pattern: "Red"
prin newline
foreach line data [
- cursor: 1 + pick line 1
+ cursor: 1 + line/1
line: next line
- gap-start: pick line 1
- gap-end: pick line 2
+ gap-start: line/1
+ gap-end: line/2
prin tab
prin tab
@@ -41,12 +41,12 @@ foreach line data [
][
#" "
][
- pick pattern cursor
+ pattern/:cursor
]
if i > gap-end [
unless tail? line: skip line 2 [
- gap-start: pick line 1
- gap-end: pick line 2
+ gap-start: line/1
+ gap-end: line/2
]
]

0 comments on commit 88fd1ff

Please sign in to comment.