==================================================
[EDIT:] I've written a script to identify the start of functions, which I could expand upon, to identify the end of functions. The problem is then to identify variables, which perhaps I could do by creating a temporary script for each function and grabbing the variables. Is there a better way than that?
Code: Select all
q:: ;list functions (omits OTB functions and possibly others)
;vText := JEE_GetSelectedText()
vText := Clipboard
vOutput := ""
VarSetCapacity(vOutput, StrLen(vText)*2)
vText := RegExReplace(vText, "`r`n\K[ `t]*\w+?\(.*`r`n{", Chr(1) "$0")
Loop, Parse, vText, % Chr(1)
if (A_Index > 1)
vOutput .= RegExReplace(A_LoopField, "s)[ `t]*\w+?\K\(.*") "`r`n"
Clipboard := vOutput
MsgBox, % "done"
return