Skip to content
This repository was archived by the owner on Apr 16, 2026. It is now read-only.
This repository was archived by the owner on Apr 16, 2026. It is now read-only.

[Julia] Extraneous '}' causes highlighting to "crash" #5797

Closed

Description

@mlubin

When I paste the code below into https://codemirror.net/mode/julia/index.html and then press enter three times, all the text disappears.

struct S
    field::Float64}
end

The } is incorrect syntax. However, the fact that the text disappears makes it hard to correct the syntax error :)

Browser: Chrome 72.0.3626.119 on Linux 64 bit.

Screenshots:

image

This is after pasting the code, before pressing enter.

image

This is after pressing enter once. Note that the end appears on its own.

image

This is after pressing enter two additional times. All the text disappears.

CC @pabloferz (most active author on the Julia syntax highlighting)

Activity

  1. adrianheine commented on Mar 5, 2019

    @adrianheine
    Contributor

    Same happens for me. I also tried disabled the matchbrackets addon, but it still happens.

  2. added a commit that references this issue on Jan 6, 2020
    f27f1c0
  3. added a commit that references this issue on Jan 21, 2020
    2e3f6d4
  4. added a commit that references this issue on Sep 5, 2024
    abfa457
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions