I am having problems with the Variables subgroup in my Function List. Seems there is an incremental offset, +1 for each variable found.
e.g.
My Function List is hierarchical:
Group definitions:
e.g.
Code: Select all
<?php
function getInstance($uri = 'SERVER')
{
$var1 = 's';
$var2 = 't';
}
?>
- FUNCTIONS
|--getInstance
|------PARAMETERS
|----------$uri = 'SERVER'
|------VARIABLES
|----------$var1 = 's' <--- double-clicking here takes me 1 line above $var1
|----------$var2 = 't' <--- double-clicking here takes me 2 lines above $var2
VARIABLES
|--$var1 = 's' <--- double-clicking here takes me to $var1
|--$var2 = 't' <--- double-clicking here takes me to $var2
Group definitions:
Code: Select all
/TGBegin "Functions"
/TGFindStr = "%[^t ]++function[^t^p ]+^([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]++^)[^t^p ]++("
/TGFindStr = "%[^t ]++[afps][birtu][abinos][altv][aeilr][^t act][a-filnopr-v ^t]++function[^t^p ]+^([a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]++^)[^t^p ]++("
/TGBegin "Parameters"
/TGFindStr = "[^t ^p]++^([~,]+^)"
/TGFindBStart = "("
/TGFindBEnd = ")"
/TGFindStr = "[^t ^p]++^(^$[~,()]+(*)^)"
/TGFindBStart = "("
/TGFindBEnd = ")"
/TGEnd
/TGBegin "Variables"
/TGFindStr = "^(^$[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]++[^t ]++=*^);"
/TGFindBStart = "{"
/TGFindBEnd = "}"
/TGEnd
/TGEnd
/TGBegin "Variables"
/TGFindStr = "^(^$[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]++[^t ]++=*^);"
/TGEnd