With the help of a standard editor only - that will be a difficult and cumbersome task, for example, in the below snippet try to find the "^Test" global (not the routine ^Test):
set value = ^Test // take a value from the global ^Test
do ^Test // call the routine ^Test
// a more complex case
//
set ref = "^Test" // in this case you are lucky
set ref = "^" _ "Test" // this could be a stumbling stone
// few lines later
set value = @ref // get the value of ^Test global
do @ref // call the routine ^TestYou will need some kind of an "intelligent" editor which can make a difference between a call (do) like operation and a "get-value" like operation. The one I know of (but I have never used it, so I don't know how good it works) is the RE/parser of GJS. Asking Google is a good starting point.
- Log in to post comments