summaryrefslogtreecommitdiff
path: root/languages.toml
diff options
context:
space:
mode:
authorSophie Dankel2023-02-25 18:47:54 +0000
committerGitHub2023-02-25 18:47:54 +0000
commitf69bb411691ba023951168e8ee865795328294bb (patch)
tree939be9cae7b7202875797801059f734a62cda1ac /languages.toml
parent0cbb61c3a45f605f685897027ec0dc606ec8bef5 (diff)
Add language support for sway (#6023)
Diffstat (limited to 'languages.toml')
-rw-r--r--languages.toml14
1 files changed, 14 insertions, 0 deletions
diff --git a/languages.toml b/languages.toml
index aa580dec..b364de96 100644
--- a/languages.toml
+++ b/languages.toml
@@ -53,6 +53,20 @@ name = "rust"
source = { git = "https://github.com/tree-sitter/tree-sitter-rust", rev = "0431a2c60828731f27491ee9fdefe25e250ce9c9" }
[[language]]
+name = "sway"
+scope = "source.sway"
+injection-regex = "sway"
+file-types = ["sw"]
+language-server = { command = "forc", args = ["lsp"] }
+roots = ["Forc.toml", "Forc.lock"]
+indent = { tab-width = 4, unit = " " }
+comment-token = "//"
+
+[[grammar]]
+name = "sway"
+source = { git = "https://github.com/FuelLabs/tree-sitter-sway", rev = "e491a005ee1d310f4c138bf215afd44cfebf959c" }
+
+[[language]]
name = "toml"
scope = "source.toml"
injection-regex = "toml"