sphinx-doc / sphinx

The Sphinx documentation generator
https://www.sphinx-doc.org/
Other
6.43k stars 2.1k forks source link

Feature request: support ABNF grammar in productionlist #4454

Open jsamr opened 6 years ago

jsamr commented 6 years ago

Feature

Provide support for Augmented Backus Naur Form [rfc5234] syntax in production list. The grammar option could have the following values:

Sample

.. productionlist::
  :grammar: abnf-5234

  UPPERCASE-ALPHA = %x41-5A ; A-Z
  LOWERCASE-ALPHA = %x61-7A ; a-z
tk0miya commented 6 years ago

+0; I can accept it if anyone makes a PR for it.

jashank commented 4 years ago

I've recently run into a need for this, and am presently attempting to cobble something together.