-
-
Notifications
You must be signed in to change notification settings - Fork 252
Closed
Description
I was using the rescript-highlightjs.js
plugin in a personal project for highlight.js and noticed that %raw(
/ %%raw(...
are being formatted improperly. You can see an example of this on the ReScript website.
https://rescript-lang.org/docs/manual/latest/embed-raw-javascript

I don't have a permanent suggestion, but I was able to make a quick change in my personal project and it worked for my use case by adding the tick marks between the parentheses as below.
{
begin: "%%?(`" + RE_ATTRIBUTE + '`)\\(',
end: '\\s*\\)',
},
{
begin: "%%?(`" + RE_ATTRIBUTE + '`)',
},
Metadata
Metadata
Assignees
Labels
No labels