Skip to content

Commit a45fcb9

Browse files
committed
spec/dfn-patterns: added token and dictmember dfn types
1 parent f7a4049 commit a45fcb9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

spec/dfn-patterns.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,15 @@ To aid with cross-linking and automatic documentation, definitions are now class
2525
* at-rule
2626
* function (like counter() or linear-gradient())
2727
* selector
28+
* token
2829

2930
There are additional categories for WebIDL definitions:
3031

3132
* interface
3233
* method
3334
* attribute
3435
* dictionary
36+
* dictmember
3537
* enum
3638
* const
3739

@@ -55,6 +57,7 @@ If a definition's type isn't explicitly specified with one of the following meth
5557
* Is it surrounded by double single quotes in the source, like %%''foo''%%? Then it's a **value**.
5658
* Does it start with an @? Then it's an **at-rule**.
5759
* Is it surrounded by <>? Then it's a **type**.
60+
* Is it surrounded by 〈〉? Then it's a **token**.
5861
* Does it start with a :? Then it's a **selector**. (This is a simplistic auto-detection for pseudo-classes and pseudo-elements.)
5962
* Does it end with ()? Then it's a **function**.
6063
* Otherwise, it's a **dfn**.
@@ -73,10 +76,12 @@ If a definition's type hasn't been determined by one of the following methods, t
7376
|at-ruledef | at-rule|
7477
|funcdef | function|
7578
|selectordef | selector|
79+
|tokendef | token|
7680
|interfacedef | interface|
7781
|methoddef | method|
7882
|attrdef | attribute|
7983
|dictdef | dictionary|
84+
|dictmemberdef | dictmember|
8085
|enumdef | enum|
8186
|constdef | const|
8287
|html-elemdef | html-element|
@@ -96,10 +101,12 @@ If a definition's type isn't explicitly specified by the following method, the t
96101
|at-ruledef- | at-rule|
97102
|funcdef- | function|
98103
|selectordef- | selector|
104+
|tokendef- | token|
99105
|interfacedef- | interface|
100106
|methoddef- | method|
101107
|attrdef- | attribute|
102108
|dictdef- | dictionary|
109+
|dictmemberdef- | dictmember|
103110
|enumdef- | enum|
104111
|constdef- | const|
105112
|html-elemdef- | html-element|

0 commit comments

Comments
 (0)