Skip to content

Commit ff7b116

Browse files
committed
Add injections to supported languages
Adds the "injections" query file to all languages that have injected languages available.
1 parent 2021287 commit ff7b116

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

Sources/CodeEditLanguages/CodeLanguage+Definitions.swift

+17-9
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,8 @@ public extension CodeLanguage {
6060
id: .cpp,
6161
tsName: "cpp",
6262
extensions: ["cpp", "h", "hpp", "cc"],
63-
parentURL: CodeLanguage.c.queryURL
63+
parentURL: CodeLanguage.c.queryURL,
64+
highlights: ["injections"]
6465
)
6566

6667
/// A language structure for `C#`
@@ -88,7 +89,8 @@ public extension CodeLanguage {
8889
static let elixir: CodeLanguage = .init(
8990
id: .elixir,
9091
tsName: "elixir",
91-
extensions: ["ex", "exs"]
92+
extensions: ["ex", "exs"],
93+
highlights: ["injections"]
9294
)
9395

9496
/// A language structure for `Go`
@@ -116,7 +118,8 @@ public extension CodeLanguage {
116118
static let html: CodeLanguage = .init(
117119
id: .html,
118120
tsName: "html",
119-
extensions: ["html", "htm"]
121+
extensions: ["html", "htm"],
122+
highlights: ["injections"]
120123
)
121124

122125
/// A language structure for `Java`
@@ -130,7 +133,8 @@ public extension CodeLanguage {
130133
static let javascript: CodeLanguage = .init(
131134
id: .javascript,
132135
tsName: "javascript",
133-
extensions: ["js"]
136+
extensions: ["js"],
137+
highlights: ["injections"]
134138
)
135139

136140
/// A language structure for `JSON`
@@ -145,7 +149,7 @@ public extension CodeLanguage {
145149
id: .jsx,
146150
tsName: "javascript",
147151
extensions: ["jsx"],
148-
highlights: ["highlights-jsx"]
152+
highlights: ["highlights-jsx", "injections"]
149153
)
150154

151155
/// A language structure for `Kotlin`
@@ -159,7 +163,8 @@ public extension CodeLanguage {
159163
static let lua: CodeLanguage = .init(
160164
id: .lua,
161165
tsName: "lua",
162-
extensions: ["lua"]
166+
extensions: ["lua"],
167+
highlights: ["injections"]
163168
)
164169

165170
/// A language structure for `Objective C`
@@ -187,7 +192,8 @@ public extension CodeLanguage {
187192
static let php: CodeLanguage = .init(
188193
id: .php,
189194
tsName: "php",
190-
extensions: ["php"]
195+
extensions: ["php"],
196+
highlights: ["injections"]
191197
)
192198

193199
/// A language structure for `Python`
@@ -208,7 +214,8 @@ public extension CodeLanguage {
208214
static let rust: CodeLanguage = .init(
209215
id: .rust,
210216
tsName: "rust",
211-
extensions: ["rs"]
217+
extensions: ["rs"],
218+
highlights: ["injections"]
212219
)
213220

214221
/// A language structure for `SQL`
@@ -236,7 +243,8 @@ public extension CodeLanguage {
236243
static let zig: CodeLanguage = .init(
237244
id: .zig,
238245
tsName: "zig",
239-
extensions: ["zig"]
246+
extensions: ["zig"],
247+
highlights: ["injections"]
240248
)
241249

242250
/// The default language (plain text)

0 commit comments

Comments
 (0)