Added shell prettier plugin

This commit is contained in:
2025-09-13 19:21:06 +08:00
parent eda7ef771e
commit 5ca5aa64c7
9 changed files with 570 additions and 122 deletions

View File

@@ -42,6 +42,7 @@ import phpPrettierPlugin from "@/utils/prettier/plugins/php"
import javaPrettierPlugin from "@/utils/prettier/plugins/java"
import xmlPrettierPlugin from "@prettier/plugin-xml"
import * as rustPrettierPlugin from "@/utils/prettier/plugins/rust";
import * as shellPrettierPlugin from "@/utils/prettier/plugins/shell";
import * as prettierPluginEstree from "prettier/plugins/estree";
/**
@@ -104,7 +105,10 @@ export const LANGUAGES: LanguageInfo[] = [
}),
new LanguageInfo("cs", "C#", StreamLanguage.define(csharp).parser),
new LanguageInfo("rb", "Ruby", StreamLanguage.define(ruby).parser),
new LanguageInfo("sh", "Shell", StreamLanguage.define(shell).parser),
new LanguageInfo("sh", "Shell", StreamLanguage.define(shell).parser,{
parser: "sh",
plugins: [shellPrettierPlugin]
}),
new LanguageInfo("yaml", "YAML", yamlLanguage.parser, {
parser: "yaml",
plugins: [yamlPrettierPlugin]