From 110fefd0899a5eb299c8ab23a9b55245bc56fc38 Mon Sep 17 00:00:00 2001 From: Oscar Spencer Date: Mon, 25 Mar 2024 22:45:40 -0500 Subject: [PATCH] feat: Support @throws graindoc --- editor-extensions/vscode/syntaxes/grain.json | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/editor-extensions/vscode/syntaxes/grain.json b/editor-extensions/vscode/syntaxes/grain.json index 74f609c..76328f8 100644 --- a/editor-extensions/vscode/syntaxes/grain.json +++ b/editor-extensions/vscode/syntaxes/grain.json @@ -213,7 +213,18 @@ } }, { - "match": "((@)(param|returns|module|example|section|deprecated|since|history))", + "match": "((@)throws)\\s+(.*?)(:)", + "captures": { + "1": { "name": "storage.type.graindoc" }, + "2": { "name": "punctuation.definition.block.tag.graindoc" }, + "3": { + "patterns": [{ "include": "#type-variant" }] + }, + "4": { "name": "punctuation.definition.block.tag.graindoc" } + } + }, + { + "match": "((@)(param|returns|module|example|section|deprecated|since|history|throws))", "captures": { "1": { "name": "storage.type.graindoc" }, "2": { "name": "punctuation.definition.block.tag.graindoc" }