Updated function decleration syntax
This commit is contained in:
@@ -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": {
|
"captures": {
|
||||||
"1": {
|
"1": {
|
||||||
"name": "storage.type.mist"
|
"name": "storage.type.mist"
|
||||||
},
|
},
|
||||||
"2": {
|
"2": {
|
||||||
|
"patterns": [
|
||||||
|
{
|
||||||
|
"include": "#types"
|
||||||
|
}
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"3": {
|
||||||
"name": "entity.name.function.mist"
|
"name": "entity.name.function.mist"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -320,7 +327,7 @@
|
|||||||
"name": "entity.name.type.numeric.mist"
|
"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"
|
"name": "entity.name.type.other.mist"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user