From 3e78b8fdad953a14c9a4f815295dfc6ed75d409f Mon Sep 17 00:00:00 2001 From: Slin Lee Date: Tue, 22 Mar 2022 09:38:49 -0700 Subject: Add syntax highlighting for Solidity (#1854) --- languages.toml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'languages.toml') 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" } -- cgit v1.2.3-70-g09d2