Skip to content

Commit

Permalink
feat: Support @throws graindoc (#175)
Browse files Browse the repository at this point in the history
  • Loading branch information
ospencer committed Mar 27, 2024
1 parent c94bab4 commit 33c3aa0
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion editor-extensions/vscode/syntaxes/grain.json
Expand Up @@ -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" }
Expand Down

0 comments on commit 33c3aa0

Please sign in to comment.