Skip to content

Commit 3c79bf5

Browse files
authored
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
1 parent 5d7fa57 commit 3c79bf5

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

book/src/generated/lang-support.md

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
| ruby || || `solargraph` |
5555
| rust |||| `rust-analyzer` |
5656
| scala || || `metals` |
57+
| solidity | | | | `solc` |
5758
| svelte || || `svelteserver` |
5859
| tablegen |||| |
5960
| toml || | | |

languages.toml

+11
Original file line numberDiff line numberDiff line change
@@ -988,3 +988,14 @@ indent = { tab-width = 2, unit = " " }
988988
[[grammar]]
989989
name = "org"
990990
source = { 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+

0 commit comments

Comments
 (0)