Skip to content

Commit

Permalink
Add support for 'permission' dfn type (#2232)
Browse files Browse the repository at this point in the history
  • Loading branch information
dontcallmedom authored Feb 24, 2022
1 parent 3750b07 commit f092c3a
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion bikeshed/config/dfnTypes.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@
"contextdef": "context",
"facetdef": "facet",
"http-headerdef": "http-header",
"permissiondef": "permission",
}


Expand Down Expand Up @@ -74,6 +75,7 @@
"iterator",
"maplike",
"setlike",
"permission",
]
)
idlNameTypes = frozenset(["interface", "namespace", "dictionary", "enum", "typedef", "callback"])
Expand Down Expand Up @@ -118,11 +120,14 @@
"exception",
"typedef",
"http-header",
"permission",
]
)
assert not (typesUsingFor & typesNotUsingFor)
lowercaseTypes = (
cssTypes | markupTypes | frozenset(["propdesc", "element-sub", "maybe", "dfn", "grammar", "http-header"])
cssTypes
| markupTypes
| frozenset(["propdesc", "element-sub", "maybe", "dfn", "grammar", "http-header", "permission"])
)


Expand Down

0 comments on commit f092c3a

Please sign in to comment.