Skip to content

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

Closed

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

  1. added
    bug
    core-engine
    on Aug 24, 2026
  2. squid-protocol commented on Aug 24, 2026

    @squid-protocol
    OwnerAuthor

    Closing: My investigation was incorrect. GitGalaxy's regex already extracts the full Image::ExifTool::EndDir perfectly. Ctags is the tool that incorrectly truncates it to Image. No action required.

  3. added this to the v2.4.9 milestone on Aug 31, 2026
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

    bugcore-engine

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions