From 62db7bdbdad28d13bb7ec492ba25b87f26d8a295 Mon Sep 17 00:00:00 2001 From: Nicolay Ilinov Date: Fri, 3 May 2024 05:16:33 +0700 Subject: [PATCH] feat(langulage): Add support dart (#2003) * Add support Dart language * Add to docs info for langulage dart * Update website/docs/programming-languages.md --------- Co-authored-by: Nicolay I Co-authored-by: Meng Zhang --- crates/tabby-common/assets/languages.toml | 22 ++++++++++++++++++++++ website/docs/programming-languages.md | 1 + 2 files changed, 23 insertions(+) diff --git a/crates/tabby-common/assets/languages.toml b/crates/tabby-common/assets/languages.toml index 83d07285c5d5..65437a3f566a 100644 --- a/crates/tabby-common/assets/languages.toml +++ b/crates/tabby-common/assets/languages.toml @@ -223,6 +223,28 @@ top_level_keywords = [ "type", ] +[[config]] +languages = ["dart"] +exts = ["dart"] +line_comment = "//" +top_level_keywords = [ + "abstract", + "class", + "late", + "var", + "final", + "const", + "export", + "interface", + "type", + "enum", + "int", + "String", + "double", + "DateTime", + "typedef", +] + [[config]] languages = ["r"] exts = ["R", "r"] diff --git a/website/docs/programming-languages.md b/website/docs/programming-languages.md index ee075949945d..72cc5fb316b4 100644 --- a/website/docs/programming-languages.md +++ b/website/docs/programming-languages.md @@ -34,6 +34,7 @@ For an actual example of an issue or pull request adding the above support, plea * [C#](https://learn.microsoft.com/en-us/dotnet/csharp/) * [Solidity](https://soliditylang.org/): Since v0.10.0 * [R](https://www.r-project.org/): Since v0.12.0 +* [Dart](https://dart.dev/): Since v0.12.0 ## Languages Missing Certain Support