fix struct highlight

This commit is contained in:
koniifer 2024-09-28 16:27:58 +01:00
parent adaccda70b
commit 9098604bf0

View file

@ -18,6 +18,9 @@
{ {
"include": "#string" "include": "#string"
}, },
{
"include": "#struct"
},
{ {
"include": "#keyword" "include": "#keyword"
}, },
@ -27,9 +30,6 @@
{ {
"include": "#number" "include": "#number"
}, },
{
"include": "#struct"
},
{ {
"include": "#type" "include": "#type"
}, },
@ -150,6 +150,22 @@
} }
] ]
}, },
"struct": {
"patterns": [
{
"name": "entity.name.type.struct.hblang",
"match": "\\b[A-Z]\\w+\\b"
}
]
},
"punctuation": {
"patterns": [
{
"name": "punctuation.terminator.statement.hblang",
"match": ";|\\.|,|:"
}
]
},
"function": { "function": {
"patterns": [ "patterns": [
{ {
@ -193,14 +209,6 @@
] ]
} }
}, },
"struct": {
"patterns": [
{
"name": "entity.name.type.struct.hblang",
"match": "\\b[A-Z]\\w+\\b"
}
]
},
"array": { "array": {
"patterns": [ "patterns": [
{ {
@ -209,13 +217,5 @@
"end": "\\)" "end": "\\)"
} }
] ]
},
"punctuation": {
"patterns": [
{
"name": "punctuation.terminator.statement.hblang",
"match": ";|\\.|,|:"
}
]
} }
} }