Skip to content

Commit

Permalink
fix: make @method return types optional (close #36)
Browse files Browse the repository at this point in the history
  • Loading branch information
claytonrcarter committed Sep 5, 2024
1 parent 1d0e255 commit ea165ab
Show file tree
Hide file tree
Showing 4 changed files with 12,205 additions and 11,897 deletions.
2 changes: 1 addition & 1 deletion grammar.js
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ module.exports = grammar({
alias('@method', $.tag_name),
// `[static]` is interpreted as optional despite not being in [<...>]
optional($.static),
$._type,
optional($._type),
$.name,
$.parameters,
optional($.description),
Expand Down
12 changes: 10 additions & 2 deletions src/grammar.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit ea165ab

Please sign in to comment.