diff --git a/crates/tabby/src/serve/completions/prompt.rs b/crates/tabby/src/serve/completions/prompt.rs index 6c827c5..b5bf4a0 100644 --- a/crates/tabby/src/serve/completions/prompt.rs +++ b/crates/tabby/src/serve/completions/prompt.rs @@ -197,8 +197,14 @@ impl IndexState { } lazy_static! { - static ref LANGUAGE_LINE_COMMENT_CHAR: HashMap<&'static str, &'static str> = - HashMap::from([("python", "#"), ("rust", "//"),]); + static ref LANGUAGE_LINE_COMMENT_CHAR: HashMap<&'static str, &'static str> = HashMap::from([ + ("python", "#"), + ("rust", "//"), + ("javascript-typescript", "//"), + ("go", "//"), + ("java", "//"), + ("lua", "--"), + ]); } #[cfg(test)]