vscode-reasonml icon indicating copy to clipboard operation
vscode-reasonml copied to clipboard

adding [@@bs.val] to an external breaks the ocaml syntax highlighting

Open seadynamic8 opened this issue 7 years ago • 2 comments

I just copied this code, but moved the lines around from the Bucklescript docs: https://bucklescript.github.io/docs/en/function (Object method)

type document (* abstract type for a document object *)
external doc: document = "document" [@@bs.val]
external getElementById: document -> string -> Dom.element = "getElementById" [@@bs.send]

The lines after [@@bs.val] (2nd line) aren't being highlighted correctly.

image

seadynamic8 avatar Oct 30 '18 18:10 seadynamic8

1 year and still no feedback, can this be reconsidered? It's less than optimal having to use reasonml syntax just for externals

iogrt avatar Oct 14 '19 19:10 iogrt

I bumped into that issue yesterday as well.

hmaurer avatar May 21 '20 09:05 hmaurer