Skip to content

Commit

Permalink
Add first-class support for regions
Browse files Browse the repository at this point in the history
  • Loading branch information
jiribenes committed Jul 21, 2024
1 parent 4ae4bdb commit 2a30140
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions syntaxes/effekt.tmLanguage.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"patterns": [
{ "include": "#comments" },
{ "include": "#definitions" },
{ "include": "#regions" },
{ "include": "#keywords" },
{ "include": "#boxed_types" },
{ "include": "#literals" },
Expand Down Expand Up @@ -272,6 +273,15 @@
"match": "=>",
"name": "keyword.operator.arrow.effekt"
}]
},
"regions": {
"patterns": [{
"match": "\\b(region)\\s+([a-zA-Z][a-zA-Z0-9_]*)\\b",
"captures": {
"1": { "name": "keyword.syntax.region.effekt" },
"2": { "name": "entity.name.region.effekt" }
}
}]
}
},
"scopeName": "source.effekt"
Expand Down

0 comments on commit 2a30140

Please sign in to comment.