Skip to content

Commit

Permalink
chore: highlight user-defined value types (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
antico5 authored Mar 14, 2023
1 parent 1c896c3 commit 440956f
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions client/syntaxes/solidity.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,9 @@
{
"include": "#natspec"
},
{
"include": "#declaration-userType"
},
{
"include": "#comment"
},
Expand Down Expand Up @@ -569,6 +572,9 @@
{
"include": "#declaration-contract"
},
{
"include": "#declaration-userType"
},
{
"include": "#declaration-interface"
},
Expand Down Expand Up @@ -687,6 +693,20 @@
}
]
},
"declaration-userType": {
"match": "\\b(type)\\b\\s+(\\w+)\\b\\s+\\b(is)\\b",
"captures": {
"1": {
"name": "storage.type.userType"
},
"2": {
"name": "entity.name.type.userType"
},
"3": {
"name": "storage.modifier.is"
}
}
},
"declaration-interface": {
"patterns": [
{
Expand Down

0 comments on commit 440956f

Please sign in to comment.