Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Dec 25, 2025. It is now read-only.

Commit b8f5121

Browse files
committed
Add support for highlighting within rescript files
1 parent 80ea950 commit b8f5121

File tree

8 files changed

+29
-21
lines changed

8 files changed

+29
-21
lines changed

package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@
6161
"source.svelte",
6262
"source.sql",
6363
"source.css",
64-
"source.rescript",
64+
"source.rescript",
6565
"text.html"
6666
],
6767
"scopeName": "inline.es6-css",
@@ -81,7 +81,7 @@
8181
"source.vue",
8282
"source.svelte",
8383
"source.sql",
84-
"source.rescript",
84+
"source.rescript",
8585
"text.html"
8686
],
8787
"scopeName": "inline.es6-glsl",
@@ -101,7 +101,7 @@
101101
"source.vue",
102102
"source.svelte",
103103
"source.sql",
104-
"source.rescript",
104+
"source.rescript",
105105
"text.html"
106106
],
107107
"scopeName": "inline.es6-xml",
@@ -121,7 +121,7 @@
121121
"source.vue",
122122
"source.svelte",
123123
"source.sql",
124-
"source.rescript",
124+
"source.rescript",
125125
"text.html"
126126
],
127127
"scopeName": "inline.es6-js-injection",
@@ -138,6 +138,7 @@
138138
"source.vue",
139139
"source.svelte",
140140
"source.sql",
141+
"source.rescript",
141142
"text.html"
142143
],
143144
"scopeName": "inline.es6-html",
@@ -154,7 +155,7 @@
154155
"source.vue",
155156
"source.svelte",
156157
"source.sql",
157-
"source.rescript",
158+
"source.rescript",
158159
"text.html"
159160
],
160161
"scopeName": "inline.es6-sql",
@@ -174,7 +175,7 @@
174175
"source.vue",
175176
"source.svelte",
176177
"source.sql",
177-
"source.rescript",
178+
"source.rescript",
178179
"text.html"
179180
],
180181
"scopeName": "inline.es6-javascript",

syntaxes/es6-inline-css.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
"html",
88
"vue",
99
"svelte",
10-
"php"
10+
"php",
11+
"res"
1112
],
12-
"injectionSelector": "L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string",
13+
"injectionSelector": "L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string, L:source.vue -comment -string, L:source.svelte -comment -string, L:source.php -comment -string, L:source.rescript -comment -string",
1314
"injections": {
1415
"L:source": {
1516
"patterns": [

syntaxes/es6-inline-glsl.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
"html",
88
"vue",
99
"svelte",
10-
"php"
10+
"php",
11+
"res"
1112
],
12-
"injectionSelector": "L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string",
13+
"injectionSelector": "L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string",
1314
"injections": {
1415
"L:source": {
1516
"patterns": [

syntaxes/es6-inline-html.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
"html",
88
"vue",
99
"svelte",
10-
"php"
10+
"php",
11+
"res"
1112
],
12-
"injectionSelector": "L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string",
13+
"injectionSelector": "L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string",
1314
"injections": {
1415
"L:source": {
1516
"patterns": [

syntaxes/es6-inline-javascript.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
"html",
88
"vue",
99
"svelte",
10-
"php"
10+
"php",
11+
"res"
1112
],
12-
"injectionSelector": "L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string",
13+
"injectionSelector": "L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string",
1314
"injections": {
1415
"L:source": {
1516
"patterns": [
@@ -109,4 +110,4 @@
109110
}
110111
],
111112
"scopeName": "inline.es6-javascript"
112-
}
113+
}

syntaxes/es6-inline-sql.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
"html",
88
"vue",
99
"svelte",
10-
"php"
10+
"php",
11+
"res"
1112
],
12-
"injectionSelector": "L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string",
13+
"injectionSelector": "L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string",
1314
"injections": {
1415
"L:source": {
1516
"patterns": [

syntaxes/es6-inline-xml.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
"html",
88
"vue",
99
"svelte",
10-
"php"
10+
"php",
11+
"res"
1112
],
12-
"injectionSelector": "L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string",
13+
"injectionSelector": "L:source.js -comment -string, L:source.js -comment -string, L:source.jsx -comment -string, L:source.js.jsx -comment -string, L:source.ts -comment -string, L:source.tsx -comment -string, L:source.rescript -comment -string",
1314
"injections": {
1415
"L:source": {
1516
"patterns": [

syntaxes/es6-js-injection.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,10 @@
77
"html",
88
"vue",
99
"svelte",
10-
"php"
10+
"php",
11+
"res"
1112
],
12-
"injectionSelector": "L:source.js (string.quoted.double.html, string.quoted.single.html), L:source.jsx (string.quoted.double.html, string.quoted.single.html), L:source.js.jsx (string.quoted.double.html, string.quoted.single.html), L:source.ts (string.quoted.double.html, string.quoted.single.html), L:source.tsx (string.quoted.double.html, string.quoted.single.html)",
13+
"injectionSelector": "L:source.js (string.quoted.double.html, string.quoted.single.html), L:source.jsx (string.quoted.double.html, string.quoted.single.html), L:source.js.jsx (string.quoted.double.html, string.quoted.single.html), L:source.ts (string.quoted.double.html, string.quoted.single.html), L:source.tsx (string.quoted.double.html, string.quoted.single.html), L:source.rescript -comment -string",
1314
"patterns": [
1415
{
1516
"include": "source.ts#template-substitution-element"

0 commit comments

Comments
 (0)