speced / respec

A tool for creating technical documents and web standards
https://respec.org/
Other
709 stars 376 forks source link

Generic nullable type not rendered in inline var syntax #4708

Closed nondebug closed 1 month ago

nondebug commented 1 month ago

Description of problem

URL to affected spec or repo:

https://github.com/w3c/gamepad/pull/205#pullrequestreview-2050627610

What happened (e.g., it crashed)?:

It wasn't recognized as a variable name: image

If I remove the ? then it renders correctly.

Expected behavior (e.g., it shouldn't crash):

|gamepads| should be styled like a variable and should show the type sequence<Gamepad?> on hover.

sidvishnoi commented 1 month ago

Can you send a PR with a test similar to https://github.com/w3c/respec/pull/4685?