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

Description
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
- Go to https://github.com/erlang/otp
- Clone repository with
git clone git@github.com:erlang/otp.git
- Open
otp folder in vscode with erlang_ls extension installed
- Open
mnesia.erl file located in lib/mnesia/src
- Scroll to
match_object/3 function on line 2036
- 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:

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)