Skip to content

[Upstream] tree-sitter-zig surfaces inline local variable struct/enums as top-level classes #2168

Description

@squid-protocol

Tree-Sitter incorrectly extracts anonymous inline enums or structs assigned to local variables (e.g. const need_writable_dance: enum { no, lf_only, lf_and_debug } = w: { ... }) as top-level ContainerDecl / ErrorSetDecl elements instead of recognizing them as scoped variable types. This pollutes the AST class extraction. GitGalaxy correctly ignores them as they aren't true top-level class declarations.

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