Skip to content
This repository was archived by the owner on Aug 15, 2025. It is now read-only.
This repository was archived by the owner on Aug 15, 2025. It is now read-only.

-doc writted with triple quotes (""") breaks when there are single quotes (") inside triple quotes. #1590

@Mikaka27

Description

@Mikaka27

Describe the bug
When -doc is written using triple quotes ("""), and it contains single quotes (") as well, the parser breaks, and many things that are located below such -doc block have broken syntax highlighting.

To Reproduce

  1. Go to https://github.com/erlang/otp
  2. Clone repository with git clone git@github.com:erlang/otp.git
  3. Open otp folder in vscode with erlang_ls extension installed
  4. Open mnesia.erl file located in lib/mnesia/src
  5. Scroll to match_object/3 function on line 2036
  6. Observe that this function's (and many things below) syntax is not correctly highlighted in editor

Expected behavior
Syntax coloring should not break when using single quotes (") inside triple quoted blocks (""").

Actual behavior
Syntax coloring breaks:

Image

Context

  • erlang_ls version (tag/sha): ed1daaa (the one in vscode extension version 0.0.46
  • Editor used: Visual studio code 1.98.2
  • LSP client used: Visual studio code 1.98.2 (not sure what to put here, please advise if this is wrong, thanks)

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