Skip to content

Commit

Permalink
Reformat for cargo
Browse files Browse the repository at this point in the history
  • Loading branch information
jnormile committed Mar 15, 2024
1 parent 4969d8b commit 5ae8916
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions plexity/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,19 +46,25 @@ fn select_parser(language: String) -> Parser {
"dockerfile" => parser
.set_language(tree_sitter_dockerfile::language())
.unwrap(),
"gitattributes" => parser.set_language(tree_sitter_gitattributes::language()).unwrap(),
"gitattributes" => parser
.set_language(tree_sitter_gitattributes::language())
.unwrap(),
"html" => parser.set_language(tree_sitter_html::language()).unwrap(),
"java" => parser.set_language(tree_sitter_java::language()).unwrap(),
"javascript" => parser
.set_language(tree_sitter_javascript::language())
.unwrap(),
"json" => parser.set_language(tree_sitter_json::language()).unwrap(),
"markdown" => parser.set_language(tree_sitter_md::language()).unwrap(),
"php" => parser.set_language(tree_sitter_php::language_php()).unwrap(),
"php" => parser
.set_language(tree_sitter_php::language_php())
.unwrap(),
"python" => parser.set_language(tree_sitter_python::language()).unwrap(),
"rust" => parser.set_language(tree_sitter_rust::language()).unwrap(),
"toml" => parser.set_language(tree_sitter_toml::language()).unwrap(),
"typescript" => parser.set_language(tree_sitter_typescript::language_typescript()).unwrap(),
"typescript" => parser
.set_language(tree_sitter_typescript::language_typescript())
.unwrap(),
// Need to do something about this "wildcard" match statement (required by compiler)
&_ => parser.set_language(tree_sitter_python::language()).unwrap(),
}
Expand Down

0 comments on commit 5ae8916

Please sign in to comment.