Skip to content

[bug] Perl: func_start regex misses subroutines with body on same line #2215

Description

@squid-protocol

During a sweep of the tri-comparison ledger, we found that the Perl func_start regex fails to extract subroutines if the opening brace and the entire body are on the same line.

Example from exiftool/exiftool:

sub Image::ExifTool::EndDir() { return $endDir = 1 }

Ctags correctly extracts this, but GitGalaxy misses it. We should modify the func_start regex for Perl to allow matching when the subroutine definition doesn't break to a new line.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugUnintended behavior or logic failure in the enginecore-engineModifications to the central physics and parsing engine

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions