Skip to content

Commit 3305e6e

Browse files
authored
feat: support for unbalancedBracketScopes and balancedBracketScopes (#10)
* feat: support for unbalancedBracketScopes and balancedBracketScopes * feat(lang): colorized bracket support * feat(ext): improve colouring * fix(defect): manifest
1 parent 3854fa8 commit 3305e6e

File tree

2 files changed

+44
-19
lines changed

2 files changed

+44
-19
lines changed

language-configuration.json

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
["[", "]"],
99
["(", ")"]
1010
],
11+
"autoCloseBefore": ", \n\t",
1112
"autoClosingPairs": [
1213
{ "open": "{", "close": "}" },
1314
{ "open": "[", "close": "]" },
@@ -22,5 +23,13 @@
2223
"indentationRules": {
2324
"increaseIndentPattern": "^((?!\\/\\/).)*(\\{[^}\"'`]*|\\([^)\"'`]*|\\[[^\\]\"'`]*)$",
2425
"decreaseIndentPattern": "^((?!.*?\\/\\*).*\\*/)?\\s*[\\)\\}\\]].*$"
25-
}
26+
},
27+
"colorizedBracketPairs": [
28+
["(", ")"],
29+
["${", "}"],
30+
["{", "}"],
31+
["[:", ":]"],
32+
["[", "]"],
33+
["<", ">"]
34+
]
2635
}

package.json

Lines changed: 34 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,37 @@
11
{
22
"name": "solidity-lang",
33
"displayName": "solidity-syntax",
4-
"description": "solidity syntax highlighting, thats it",
4+
"description": "Solidity & EVM Semantic syntax Highlighting",
55
"publisher": "ContractShark",
66
"icon": "assets/icon.png",
77
"license": "MIT",
8-
"version": "1.4.0",
8+
"version": "1.5.0",
99
"engines": {
10-
"vscode": "^1.65.0"
10+
"vscode": "^1.67.0"
1111
},
1212
"keywords": [
1313
"solidity",
1414
"ethereum",
1515
"blockchain",
1616
"security",
17-
"audit",
18-
"review",
19-
"developer",
17+
"echidna",
18+
"semantic",
19+
"semantic highlighting",
2020
"solidity security",
2121
"solidity audit",
2222
"language",
23-
"theme"
23+
"theme",
24+
"EVM",
25+
"evm-toolkit",
26+
"eth",
27+
"defi",
28+
"compiler",
29+
"assembly",
30+
"hardhat",
31+
"foundry",
32+
"bytecode",
33+
"opcode",
34+
"natspec"
2435
],
2536
"extensionKind": [
2637
"ui",
@@ -39,7 +50,9 @@
3950
"url": "https://github.com/contractshark/vscode-extenstion.git"
4051
},
4152
"categories": [
42-
"Programming Languages"
53+
"Programming Languages",
54+
"Snippets",
55+
"Themes"
4356
],
4457
"configurationDefaults": {
4558
"solidity": {
@@ -56,21 +69,24 @@
5669
],
5770
"extensions": [
5871
".sol",
72+
".t.sol",
5973
".solidity"
6074
],
6175
"configuration": "./language-configuration.json"
6276
}
6377
],
64-
"grammars": [
65-
{
66-
"language": "solidity",
67-
"scopeName": "source.solidity",
68-
"path": "./syntaxes/solidity.tmLanguage.json",
69-
"injectTo": [
70-
"source.solidity"
71-
]
72-
}
73-
]
78+
"grammars": [
79+
{
80+
"language": "solidity",
81+
"scopeName": "source.solidity",
82+
"path": "./syntaxes/solidity.tmLanguage.json",
83+
"balancedBracketScopes": [ "*" ],
84+
"unbalancedBracketScopes": [ "meta.scope.case-pattern.solidity" ],
85+
"injectTo": [
86+
"source.solidity"
87+
]
88+
}
89+
]
7490
},
7591
"devDependencies": {
7692
"@vscode/test-web": "^0.0.15",

0 commit comments

Comments
 (0)