Skip to content

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

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

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