From 79ba1be877b16c144eefcbaa4d225dd6539b046d Mon Sep 17 00:00:00 2001 From: Wilfred Hughes Date: Wed, 24 Nov 2021 23:56:29 -0800 Subject: [PATCH] Add TODOs for file extensions --- src/tree_sitter_parser.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/tree_sitter_parser.rs b/src/tree_sitter_parser.rs index f20e259e9..319099d80 100644 --- a/src/tree_sitter_parser.rs +++ b/src/tree_sitter_parser.rs @@ -67,6 +67,10 @@ extern "C" { pub fn from_extension(extension: &OsStr) -> Option { // TODO: find a nice way to extract name and extension information // from the package.json in these parsers. + // TODO: consider using + // https://github.com/github/linguist/blob/master/lib/linguist/languages.yml + // as a source of extensions. + // TODO: support files without extensions, such as .bashrc. match extension.to_string_lossy().borrow() { "bash" | "sh" => Some(TreeSitterConfig { name: "Bash",