Skip to content

Commit

Permalink
feat: Support @throws graindoc
Browse files Browse the repository at this point in the history
  • Loading branch information
ospencer committed Mar 26, 2024
1 parent c94bab4 commit 110fefd
Showing 1 changed file with 12 additions and 1 deletion.
13 changes: 12 additions & 1 deletion editor-extensions/vscode/syntaxes/grain.json
Original file line number Diff line number Diff line change
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 110fefd

Please sign in to comment.