Skip to content

[bug] Tcl: func_start regex misses procs with nested braces in args #2218

Closed

Description

@squid-protocol

During a sweep of the tri-comparison ledger, we found that the Tcl func_start regex fails to extract procedures when their argument lists contain nested braces.

Example from sqlite/tester.tcl:

proc drop_all_tables {{db db}} {

Tree-sitter and Ctags correctly extract this, but GitGalaxy's regex fails to balance or tolerate the inner braces. This causes valid proc definitions to be dropped.

Activity

  1. added
    bug
    core-engine
    on Aug 24, 2026
  2. added 3 commits that reference this issue on Aug 24, 2026
    38ee922
    2382b89
    d45eedd
  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