on master help sign in
Add LSP support for Solidity (#1848)
3c79bf5Slin Lee
book/src/generated/lang-support.md+1
@@ -54,6 +54,7 @@
54| ruby | ✓ | | ✓ | `solargraph` |
54| ruby | ✓ | | ✓ | `solargraph` |
55| rust | ✓ | ✓ | ✓ | `rust-analyzer` |
55| rust | ✓ | ✓ | ✓ | `rust-analyzer` |
56| scala | ✓ | | ✓ | `metals` |
56| scala | ✓ | | ✓ | `metals` |
57+| solidity | | | | `solc` |
57| svelte | ✓ | | ✓ | `svelteserver` |
58| svelte | ✓ | | ✓ | `svelteserver` |
58| tablegen | ✓ | ✓ | ✓ | |
59| tablegen | ✓ | ✓ | ✓ | |
59| toml | ✓ | | | |
60| toml | ✓ | | | |
languages.toml+11
@@ -988,3 +988,14 @@ indent = { tab-width = 2, unit = " " }
988[[grammar]]
988[[grammar]]
989name = "org"
989name = "org"
990source = { git = "https://github.com/milisims/tree-sitter-org", rev = "1c3eb533a9cf6800067357b59e03ac3f91fc3a54" }
990source = { git = "https://github.com/milisims/tree-sitter-org", rev = "1c3eb533a9cf6800067357b59e03ac3f91fc3a54" }
991+
992+[[language]]
993+name = "solidity"
994+scope = "source.sol"
995+injection-regex = "sol"
996+file-types = ["sol"]
997+roots = []
998+comment-token = "//"
999+indent = { tab-width = 4, unit = " " }
1000+language-server = { command = "solc", args = ["--lsp"] }
1001+