Skip to content

Offline, privacy-first grammar checker. Fast, open-source, Rust-powered

fix(comments): use standard `shellscript` language id

Matthew Espinocb048a2890ac
diff --git a/harper-comments/src/comment_parser.rs b/harper-comments/src/comment_parser.rs
index f7f58d3e6..545368627 100644
--- a/harper-comments/src/comment_parser.rs
+++ b/harper-comments/src/comment_parser.rs
@@ -34,7 +34,7 @@ impl CommentParser {
"csharp" => tree_sitter_c_sharp::language(),
"toml" => tree_sitter_toml::language(),
"lua" => tree_sitter_lua::language(),
- "sh" => tree_sitter_bash::language(),
+ "shellscript" => tree_sitter_bash::language(),
"java" => tree_sitter_java::language(),
_ => return None,
};
@@ -82,8 +82,8 @@ impl CommentParser {
"cs" => "csharp",
"toml" => "toml",
"lua" => "lua",
- "sh" => "sh",
- "bash" => "sh",
+ "sh" => "shellscript",
+ "bash" => "shellscript",
"java" => "java",
_ => return None,
})