Skip to content

Commit

Permalink
fix: Highlight module scoped types properly (#122)
Browse files Browse the repository at this point in the history
  • Loading branch information
ospencer authored Jun 13, 2022
1 parent 3b40fc4 commit e046b6b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions editor-extensions/vscode/syntaxes/grain.json
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@
]
},
{
"match": "->",
"match": "(->|\\.)",
"name": "keyword.operator.grain"
},
{ "include": "#type-args" },
Expand All @@ -239,28 +239,28 @@
"patterns": [{ "include": "#type" }]
},
{
"match": "(->)\\s*(\\w+(<.*?>)?)",
"match": "(->)\\s*(\\w+(\\.\\w+)*(<.*?>)?)",
"captures": {
"1": { "name": "keyword.operator.grain" },
"2": { "patterns": [{ "include": "#type" }] }
}
},
{
"match": "(:)\\s*(\\w+(<.*?>)?\\s*->\\s*\\w+(<.*?>)?)",
"match": "(:)\\s*(\\w+(\\.\\w+)*(<.*?>)?\\s*->\\s*\\w+(<.*?>)?)",
"captures": {
"1": { "name": "keyword.operator.grain" },
"2": { "patterns": [{ "include": "#type" }] }
}
},
{
"match": "(:)\\s*(\\w+(<.*?>)?\\s*->\\s*\\(.*\\))",
"match": "(:)\\s*(\\w+(\\.\\w+)*(<.*?>)?\\s*->\\s*\\(.*\\))",
"captures": {
"1": { "name": "keyword.operator.grain" },
"2": { "patterns": [{ "include": "#type" }] }
}
},
{
"match": "(:)\\s*(\\w+(<.*?>)?)",
"match": "(:)\\s*(\\w+(\\.\\w+)*(<.*?>)?)",
"captures": {
"1": { "name": "keyword.operator.grain" },
"2": { "patterns": [{ "include": "#type" }] }
Expand Down

0 comments on commit e046b6b

Please sign in to comment.