Skip to content

Change entire ignored form to grey when #_ is used #58

Closed
@mefryar

Description

@mefryar

🤔 Problem

With #47, the string immediately following a #_ (a.k.a. discard character) turns grey. This works as I expected what is being ignored is a single string and there is no space. The problem arises when what is being commented is a form that is longer than a single string.

Single Line Form with space after #_

Current: Nothing changes color.

Desired: Ignored form becomes grey (as well as unused bindings).

Mutli-line Form with space after #_

Current: Nothing changes color.
image

Desired: Ignored form becomes grey.
image

Multi-line Form with no space after #_

Current: Only the first string changes colors and the last parenthesis is underlined in red.
image

Desired: Ignored form becomes grey.
image

💻 Details

IntelliJ IDEA 2024.2.4 (Community Edition)
macOS 14.7.1
com.github.clojure-lsp (2.6.2)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requesthelp wantedExtra attention is needed

    Type

    No type

    Projects

    Status

    ✅ Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions