Skip to content

Syntax highlight the JS in %raw #6214

Closed
@cristianoc

Description

@cristianoc

E.g.

let canUseCanvas: unit => bool = %raw(`
  function canUseCanvas() {
    return !!document.createElement('canvas').getContext;
  }
`)

could syntax highlight the JS code.

This issue could be a combination of finding an alternative surface syntax, e.g.

js`() => 3`

and adapt the editor extensions's grammar to recognise this syntax and inject a JS syntax highlighting grammar.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions