diff options
author | Slin Lee | 2022-03-22 16:38:49 +0000 |
---|---|---|
committer | GitHub | 2022-03-22 16:38:49 +0000 |
commit | 3e78b8fdad953a14c9a4f815295dfc6ed75d409f (patch) | |
tree | bd8abbbe20214feb13f869c04bd884fae24898cf /languages.toml | |
parent | 79477ec6e70f43722cb0cc43f4ee6928dd6c7faf (diff) |
Add syntax highlighting for Solidity (#1854)
Diffstat (limited to 'languages.toml')
-rw-r--r-- | languages.toml | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/languages.toml b/languages.toml index f81b0c4e..265f462d 100644 --- a/languages.toml +++ b/languages.toml @@ -992,10 +992,13 @@ source = { git = "https://github.com/milisims/tree-sitter-org", rev = "1c3eb533a [[language]] name = "solidity" scope = "source.sol" -injection-regex = "sol" +injection-regex = "^(sol|solidity)$" file-types = ["sol"] roots = [] comment-token = "//" indent = { tab-width = 4, unit = " " } language-server = { command = "solc", args = ["--lsp"] } +[[grammar]] +name = "solidity" +source = { git = "https://github.com/slinlee/tree-sitter-solidity", rev = "f3a002274744e859bf64cf3524985f8c31ea84fd" } |