Open donut opened 5 years ago
Messed around some more and also realized that the screenshot I posted was also messed up by the [@@bs.val]
external declaration. See https://github.com/jaredly/reason-language-server/issues/189
If the fixed value is an empty string or a string with just whitespace, there's no issue:
But if the fixed string value has any non-whitespace characters, we run into the problem:
And finally, the comment fix can be added within the [@bs.as]
tag:
Using
(_ [@bs.as "foo"])
as part of an external declaration breaks further syntax highlighting:Adding
(* "\"" *)
right after the problematicexternal
declaration returns things to normal.