Skip to content

Commit 07f2f3d

Browse files
committed
fix: update defaults
1 parent 0dda30a commit 07f2f3d

1 file changed

Lines changed: 7 additions & 16 deletions

File tree

Package.swift

Lines changed: 7 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -17,28 +17,19 @@ let package = Package(
1717
.library(name: "MarkdownParser", targets: ["MarkdownParser"]),
1818
],
1919
traits: [
20-
// By default every language grammar is enabled, so existing consumers
21-
// see no change. Opt into a subset by disabling defaults and listing
22-
// only the languages you need, e.g. `traits: ["Swift", "JSON"]`.
20+
// Default to the web-focused languages v0 chat renders. Trait *selection*
21+
// by a consumer isn't carried through Xcode / CocoaPods-generated projects
22+
// (the pbxproj has no per-consumer trait field, so Xcode always resolves
23+
// with the package default) — so the default is the only lever that prunes
24+
// grammars in that environment. The rest stay available by overriding the
25+
// default in a SwiftPM (CLI) consumer, e.g. `traits: ["Swift", "Go"]`.
2326
.default(enabledTraits: [
24-
"Python",
2527
"JavaScript",
2628
"TypeScript",
27-
"Go",
28-
"Rust",
29-
"Swift",
30-
"C",
31-
"CPP",
32-
"Java",
33-
"Ruby",
34-
"Bash",
3529
"JSON",
3630
"HTML",
3731
"CSS",
38-
"CSharp",
39-
"Kotlin",
40-
"SQL",
41-
"YAML",
32+
"Bash",
4233
]),
4334
.trait(name: "Python", description: "Python syntax highlighting"),
4435
.trait(name: "JavaScript", description: "JavaScript syntax highlighting"),

0 commit comments

Comments
 (0)