Skip to content

Commit

Permalink
Fixed incorrect struct highlighting with variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
0x9ef committed Apr 17, 2020
1 parent 8554f91 commit 3b682a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion syntaxes/v.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,7 @@
},
{
"name": "meta.definition.struct.v",
"match": "^\\s*(?:(mut|var|pub(?:\\s+mut|var)?|__global)\\s+)?(struct)(?:\\s+([\\w.]+))?",
"match": "^\\s*(?:(mut|var|pub(?:\\s+mut|var)?|__global))\\s+?(struct)\\s+(?:\\s+([\\w.]+))?",
"captures": {
"1": {
"name": "storage.modifier.$1.v"
Expand Down

0 comments on commit 3b682a9

Please sign in to comment.