add single line comment to languages so they can be used in prompting [TAB-181] (#388)
* chore: add comment signs to extended languages * Update crates/tabby/src/serve/completions/prompt.rs --------- Co-authored-by: Meng Zhang <meng@tabbyml.com>release-v0.1
parent
63c00494f3
commit
5dff349801
|
|
@ -197,8 +197,14 @@ impl IndexState {
|
||||||
}
|
}
|
||||||
|
|
||||||
lazy_static! {
|
lazy_static! {
|
||||||
static ref LANGUAGE_LINE_COMMENT_CHAR: HashMap<&'static str, &'static str> =
|
static ref LANGUAGE_LINE_COMMENT_CHAR: HashMap<&'static str, &'static str> = HashMap::from([
|
||||||
HashMap::from([("python", "#"), ("rust", "//"),]);
|
("python", "#"),
|
||||||
|
("rust", "//"),
|
||||||
|
("javascript-typescript", "//"),
|
||||||
|
("go", "//"),
|
||||||
|
("java", "//"),
|
||||||
|
("lua", "--"),
|
||||||
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(test)]
|
#[cfg(test)]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue