Skip to content

Commit

Permalink
Merge pull request #7 from sinato/feat/type-aliases
Browse files Browse the repository at this point in the history
feat: type alias
  • Loading branch information
baszalmstra authored Aug 25, 2020
2 parents 61db168 + f47e947 commit 4cf1c60
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions syntaxes/mun.tmGrammar.json
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,30 @@
}
]
},
{
"comment": "Type alias",
"begin": "\\b(type)\\s+([a-zA-Z_][a-zA-Z0-9_]*)",
"end": ";",
"beginCaptures": {
"1": {
"name": "storage.type.mun"
},
"2": {
"name": "entity.name.type.mun"
}
},
"patterns": [
{
"include": "#block_comment"
},
{
"include": "#line_comment"
},
{
"include": "#core_types"
}
]
},
{
"comment": "Function call",
"match": "\\b([A-Za-z][A-Za-z0-9_]*|_[A-Za-z0-9_]+)\\s*\\(",
Expand Down

0 comments on commit 4cf1c60

Please sign in to comment.