tabby/crates/tabby-common/assets/languages.toml

116 lines
1.6 KiB
TOML
Raw Normal View History

[[config]]
languages = ["python"]
line_comment = "#"
top_level_keywords = ["def", "from", "class", "import"]
[[config]]
languages = ["rust"]
line_comment = "//"
top_level_keywords = [
"fn",
"trait",
"impl",
"enum",
"pub",
"extern",
"static",
"trait",
"unsafe",
"use",
]
[[config]]
languages = ["java"]
line_comment = "//"
top_level_keywords = [
"abstract",
"public",
"private",
"class",
"const",
"exports",
"extends",
"implements",
"static",
"import",
"interface",
"module",
"package",
"var",
"enum",
"return",
]
feat: add support for Kotlin language (#813) * feat: add support for Kotlin * Update programming-languages.md * Update Cargo.toml * fix: kotlin missing TAGGING_QUERY * docs: remove 0.5.0 warning as tabby adapt same format for remote / local storage * feat: make --model optional, so user can start a chat only instance (#817) * fix: mark tabby-ui as yarn managed * fix: rust build caused by 1.74.0 release (#819) * chore: exclude experimental directory for language stats * chore: exclude ee/tabby-webserver/ui to language stats * fix: move db path, fix compile error (#820) * feat(vscode): Add dont-show-again for warnings. Add online help links. (#821) * refactor: delete contrib/jetson/Dockerfile as it's no longer compatible post 0.5 feel free to sending pr of adding it back if you get it work with llama.cpp based docker image * feat(vim): update tabby-agent. (#824) * feat(intellij): Add dont-show-again for warnings. Add more online help links. (#823) * feat: implement basic dependency detection for python / rust (#825) * refactor: extract tags mod for dataset.rs * feat: implement basic dependency detection for python / rust * fix: keep only direct dependency, clean up path (#827) * feat: add support for Kotlin * Update Cargo.toml * fix: adjustment post rebase * fix: added kotlin.scm to cover query tags * fix: updated kotlin.scm * remove definition import Co-authored-by: Meng Zhang <meng@tabbyml.com> * remove typealias Co-authored-by: Meng Zhang <meng@tabbyml.com> --------- Co-authored-by: Meng Zhang <meng@tabbyml.com> Co-authored-by: Eric <illuminating.me@gmail.com> Co-authored-by: Zhiming Ma <codes.icy@gmail.com>
2023-11-23 01:31:23 +00:00
[[config]]
languages = ["kotlin"]
line_comment = "//"
top_level_keywords = [
"abstract",
"public",
"private",
"companion",
"class",
"data",
"const",
"actual",
"expect",
"sealed",
"suspend",
"fun",
"import",
"interface",
"package",
"var",
"val",
"enum",
]
[[config]]
languages = ["javascript", "typescript", "javascriptreact", "typescriptreact"]
line_comment = "//"
top_level_keywords = [
"abstract",
"async",
"class",
"const",
"export",
"function",
"interface",
"module",
"package",
"type",
"var",
"enum",
"let",
]
[[config]]
languages = ["go"]
line_comment = "//"
top_level_keywords = [
"func",
"interface",
"struct",
"package",
"type",
"import",
"var",
"const",
]
[[config]]
languages = ["ruby"]
line_comment = "#"
top_level_keywords = [
"begin",
"class",
"def",
"end",
"ensure",
"include",
"module",
"require",
"rescue",
"self",
]