aboutsummaryrefslogtreecommitdiff
path: root/languages.toml
diff options
context:
space:
mode:
authorSlin Lee2022-03-22 02:22:34 +0000
committerGitHub2022-03-22 02:22:34 +0000
commit3c79bf51170caf09642da3cc23ba389ed57a79ac (patch)
tree20c367d6d37d3d1cef9e909897220a2502a2e649 /languages.toml
parent5d7fa57754ffa0a87ab103239740250b5e8a8944 (diff)
Add LSP support for Solidity (#1848)
* Add LSP support for Solidity This requires a recent version of Solidity 0.8.11+ * Add Solidity to docs * Update the docs
Diffstat (limited to 'languages.toml')
-rw-r--r--languages.toml11
1 files changed, 11 insertions, 0 deletions
diff --git a/languages.toml b/languages.toml
index 5aa1b2c8..f81b0c4e 100644
--- a/languages.toml
+++ b/languages.toml
@@ -988,3 +988,14 @@ indent = { tab-width = 2, unit = " " }
[[grammar]]
name = "org"
source = { git = "https://github.com/milisims/tree-sitter-org", rev = "1c3eb533a9cf6800067357b59e03ac3f91fc3a54" }
+
+[[language]]
+name = "solidity"
+scope = "source.sol"
+injection-regex = "sol"
+file-types = ["sol"]
+roots = []
+comment-token = "//"
+indent = { tab-width = 4, unit = " " }
+language-server = { command = "solc", args = ["--lsp"] }
+