Skip to content

Commit

Permalink
Infer that <dfn><<length [0, 10px]>></dfn> must be a value, not a type
Browse files Browse the repository at this point in the history
  • Loading branch information
tabatkins committed Dec 19, 2023
1 parent 6c07a4a commit 70d45df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bikeshed/unsortedJunk.py
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ def determineDfnType(doc: t.SpecT, dfn: t.ElementT, inferCSS: bool = False) -> s
):
return "value"
if text[0:1] == "<" and text[-1:] == ">":
if "[" in text:
if "[" in text and "]" in text:
# has a range, *must* be a value
return "value"
else:
Expand Down

0 comments on commit 70d45df

Please sign in to comment.