Skip to content

VS Code: \c[ escape sequence produces χ[, not  #701

@datokrat

Description

@datokrat

Prerequisites

Description

The tooltip for says that it can be inserted by writing \c[. However, when I write this escape sequence in VS Code or Lean 4 Web, I instead get χ[] (the closing bracket probably being inserted to match [).

Steps to Reproduce

Type \c[ in VS Code or Lean 4 Web.

Expected behavior: [Clear and concise description of what you expect to happen]

The tooltip should only suggest escape sequences that actually work. In this case, typing \c[ should produce (and perhaps the closing bracket, too, I don't know).

Actual behavior: [Clear and concise description of what actually happens]

It produces χ[].

Versions

Lean 4.29.0-nightly-2026-02-03
Target: x86_64-unknown-linux-gnu

Additional Information

[Additional information, configuration or data that might be necessary to reproduce the issue]

Impact

Add 👍 to issues you consider important. If others are impacted by this issue, please ask them to add 👍 to it.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions