Updated function decleration syntax

This commit is contained in:
2026-06-16 16:38:15 +02:00
parent 538824336d
commit f1b87602a9
+9 -2
View File
@@ -212,12 +212,19 @@
}
},
{
"match": "\\b(fn)\\s+([a-zA-Z_][a-zA-Z0-9_]*)",
"match": "\\b(fn)\\s+([a-zA-Z_][a-zA-Z0-9_]*)\\s+([a-zA-Z_][a-zA-Z0-9_]*)",
"captures": {
"1": {
"name": "storage.type.mist"
},
"2": {
"patterns": [
{
"include": "#types"
}
]
},
"3": {
"name": "entity.name.function.mist"
}
}
@@ -320,7 +327,7 @@
"name": "entity.name.type.numeric.mist"
},
{
"match": "(?<![A-Za-z])(str|char|bool)\\b",
"match": "(?<![A-Za-z])(str|char|bool|void)\\b",
"name": "entity.name.type.other.mist"
},
{