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