summaryrefslogtreecommitdiff
path: root/languages.toml
diff options
context:
space:
mode:
authorAaron Housh2022-04-08 18:10:37 +0000
committerGitHub2022-04-08 18:10:37 +0000
commit9caf7c0d5aae16acd76e39b078ef8a94ed102b65 (patch)
tree9cf94dac6bf30c766ba3a2558c0c83ae246444d3 /languages.toml
parent8e12fd52908ecc7d53d1b456fe3b10e0833f1a63 (diff)
Add swift language (#2033)
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 f331edfe..b56328a8 100644
--- a/languages.toml
+++ b/languages.toml
@@ -1071,3 +1071,17 @@ roots = []
indent = { tab-width = 2, unit = " " }
grammar = "markdown"
language-server = { command = "R", args = ["--slave", "-e", "languageserver::run()"] }
+
+[[language]]
+name = "swift"
+scope = "source.swift"
+injection-regex = "swift"
+file-types = ["swift"]
+roots = [ "Package.swift" ]
+comment-token = "//"
+auto-format = true
+language-server = { command = "sourcekit-lsp" }
+
+[[grammar]]
+name = "swift"
+source = { git = "https://github.com/Dispersia/tree-sitter-swift", rev = "e75240f89bb3bfd3396155859ae364e5c58d7377" }