Skip to content

Ruby (all families): =begin ... =end block comments leak into the code stream (auth_middleware, comprehensions, import, telemetry) #9435

Backlog

Description

@squid-protocol

SOP-002-v1 gap-cell decoy suite (epic #8863), Ruby batch.

Leak. A Ruby =begin ... =end block comment (markers in column 0, the language's block-comment form) is not removed from the code stream, so every keyword family counts a keyword inside it. Seen on auth_middleware, comprehensions, import, telemetry (and the existing baseline already records block_comment: leak for ruby api). The line-exclusive lexical family only strips #.

Snippet (expect 0, actual 1) for import:

=begin
require 'json'
=end

Same with =begin rdoc and with code after =end. Line comments (#, indented, trailing) pass. Ruby block comments do not nest, so no nesting case is needed. Pinned by strict xfail in tests/decoys/test_decoy_ruby.py.

Activity

  1. added
    bug
    on Nov 26, 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

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions