jaredly / jaredly/reason-language-server

[vscode] Syntax highlighting breaks with (_ [@bs.as "foo"]) in external

Open
#288 1 comment 0 reactions 0 assignees View on GitHub
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:

Screen Shot 2019-05-22 at 1105 45

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.