Skip to content

Commit 31d2a5f

Browse files
AlhadisWliu
authored andcommitted
Add @api and @internal to recognised JSDoc tags
Not part of the official JSDoc spec, yet occasionally used in-the-wild.
1 parent c438e37 commit 31d2a5f

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

grammars/jsdoc.cson

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
'3':
1212
'name': 'constant.language.access-type.jsdoc'
1313
'match': '''(?x)
14-
((@)access)
14+
((@)(?:access|api))
1515
\\s+
1616
(private|protected|public)
1717
\\b
@@ -377,16 +377,16 @@
377377
'1':
378378
'name': 'punctuation.definition.block.tag.jsdoc'
379379
'match': '''(?x) (@)
380-
(?:abstract|access|alias|arg|argument|async|attribute|augments|author|beta|borrows|bubbles
380+
(?:abstract|access|alias|api|arg|argument|async|attribute|augments|author|beta|borrows|bubbles
381381
|callback|chainable|class|classdesc|code|config|const|constant|constructor|constructs|copyright
382382
|default|defaultvalue|define|deprecated|desc|description|dict|emits|enum|event|example|exception
383383
|exports?|extends|extension(?:_?for)?|external|externs|file|fileoverview|final|fires|for|func
384-
|function|global|host|ignore|implements|implicitCast|inherit[Dd]oc|inner|instance|interface|kind
385-
|lends|license|listens|main|member|memberof!?|method|mixes|mixins?|modifies|module|name|namespace
386-
|noalias|nocollapse|nocompile|nosideeffects|override|overview|package|param|preserve|private|prop
387-
|property|protected|public|read[Oo]nly|record|require[ds]|returns?|see|since|static|struct|submodule
388-
|summary|suppress|template|this|throws|todo|tutorial|type|typedef|unrestricted|uses|var|variation
389-
|version|virtual|writeOnce)
384+
|function|global|host|ignore|implements|implicitCast|inherit[Dd]oc|inner|instance|interface
385+
|internal|kind|lends|license|listens|main|member|memberof!?|method|mixes|mixins?|modifies|module
386+
|name|namespace|noalias|nocollapse|nocompile|nosideeffects|override|overview|package|param|preserve
387+
|private|prop|property|protected|public|read[Oo]nly|record|require[ds]|returns?|see|since|static
388+
|struct|submodule|summary|suppress|template|this|throws|todo|tutorial|type|typedef|unrestricted
389+
|uses|var|variation|version|virtual|writeOnce)
390390
\\b
391391
'''
392392
'name': 'storage.type.class.jsdoc'

0 commit comments

Comments
 (0)