Ticket #653: 653.patch
| File 653.patch, 582 bytes (added by patrickas, 4 years ago) |
|---|
-
EditorTools.pm
244 244 return $cursor->parent; 245 245 } 246 246 247 # This finds variable declarations if you're above it and it has the form my ($foo , $bar); 248 if($cursor->parent->isa('PPI::Statement::Expression') && $cursor->parent->parent->parent->isa('PPI::Statement::Variable') ) { 249 return $cursor->parent->parent->parent; 250 } 251 247 252 while (1) { 248 253 $prev_cursor = $cursor; 249 254 $cursor = $cursor->parent;
