jaredly / jaredly/reason-language-server
[vscode] Syntax highlighting breaks with (_ [@bs.as "foo"]) in external
Open
syntax highlighting
- Dominant language
- OCaml
- Stars
- 649
- Forks
- 85
- PR merge metrics
- No merged PRs in 30d
Description
Using `(_ [@bs.as "foo"])` as part of an external declaration breaks further syntax highlighting:

Adding `(* "\"" *)` right after the problematic `external` declaration returns things to normal.
Contributor guide
No contributing guide indexed for this repository
Research direction
Reproduce the issue in VS Code with an external declaration containing `(_ [@bs.as "foo"])`, then inspect the syntax-highlighting handling for this construct. Done means highlighting continues correctly after the declaration without requiring the `(* "\"" *)` workaround.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- ocaml
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100