Skip to content

Commit

Permalink
chore: array syntax highlighting
Browse files Browse the repository at this point in the history
  • Loading branch information
antico5 committed Mar 30, 2023
1 parent 4cb2337 commit 0eb3f49
Showing 1 changed file with 49 additions and 0 deletions.
49 changes: 49 additions & 0 deletions client/syntaxes/solidity.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@
{
"include": "#type-primitive"
},
{
"include": "#type-user"
},
{
"include": "#type-modifier-extended-scope"
},
Expand Down Expand Up @@ -446,6 +449,37 @@
}
]
},
"type-user": {
"patterns": [
{
"begin": "\\b([A-Z]\\w*)\\b(?:\\[\\])(\\()",
"beginCaptures": {
"1": {
"name": "entity.name.type"
}
},
"end": "(\\))",
"patterns": [
{
"include": "#primitive"
},
{
"include": "#punctuation"
},
{
"include": "#global"
},
{
"include": "#variable"
}
]
},
{
"match": "\\b([A-Z]\\w*)\\b",
"name": "entity.name.type"
}
]
},
"global": {
"patterns": [
{
Expand Down Expand Up @@ -612,6 +646,9 @@
{
"include": "#type-primitive"
},
{
"include": "#type-user"
},
{
"include": "#type-modifier-access"
},
Expand Down Expand Up @@ -785,6 +822,9 @@
{
"include": "#type-primitive"
},
{
"include": "#type-user"
},
{
"include": "#variable"
},
Expand Down Expand Up @@ -815,6 +855,9 @@
{
"include": "#type-primitive"
},
{
"include": "#type-user"
},
{
"match": "\\b(?:(indexed)\\s)?(\\w+)(?:,\\s*|)",
"captures": {
Expand Down Expand Up @@ -934,6 +977,9 @@
{
"include": "#type-primitive"
},
{
"include": "#type-user"
},
{
"include": "#type-modifier-extended-scope"
},
Expand Down Expand Up @@ -1097,6 +1143,9 @@
{
"include": "#type-primitive"
},
{
"include": "#type-user"
},
{
"include": "#punctuation"
},
Expand Down

0 comments on commit 0eb3f49

Please sign in to comment.