home *** CD-ROM | disk | FTP | other *** search
- /*
- * First hack at marking a rexx function.
- */
- trace ?I
- options results
- options failat 2
-
- /* Save our current location */
- 'set-mark'
- 'rexx-line'
- do while left(result, 2) ~= "/*"
- 'next-line'
- if rc ~= 0 then break
- 'rexx-line'
- end
-
- /* Found the top of the next function, or the end of the buffer, so mark it */
- 'beginning-of-line'
- 'set-mark'
-
- /* Now, move back to the top of this function */
- 'previous-line'
- 'rexx-line'
- do while left(result, 2) ~= "/*"
- 'previous-line'
- if rc != 0 then break
- 'rexx-line'
- end
- exit 0
-