diff --git a/editor-extensions/vscode/syntaxes/grain.json b/editor-extensions/vscode/syntaxes/grain.json index 4cfd3d7..b1eb2da 100644 --- a/editor-extensions/vscode/syntaxes/grain.json +++ b/editor-extensions/vscode/syntaxes/grain.json @@ -221,7 +221,7 @@ ] }, { - "match": "->", + "match": "(->|\\.)", "name": "keyword.operator.grain" }, { "include": "#type-args" }, @@ -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" }] }