Skip to content

tree_sitter_accuracy_audit.py: rust class_precision_pct macro body blind spot #1709

Closed

Description

@squid-protocol

The tree-sitter-rust parser treats the bodies of macro_rules! definitions and function-like macro invocations (e.g., quote!, ast_struct!) as opaque token trees. It does not emit nested struct_item or enum_item nodes. GitGalaxy correctly parses these structural definitions, but they are misclassified as false positive 'extra classes' by the audit script. This is the same limitation already documented for Rust extra_functions.

Activity

  1. added
    bug
    testing
    on Aug 15, 2026
  2. added this to the v2.4.8 milestone on Aug 16, 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

    bugtesting

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions