sphinx-doc/sphinx

Feature request: support ABNF grammar in productionlist

Aperta

#4454 aperta il 18 gen 2018

 (3 commenti) (1 reazione) (0 assegnatari)Python (1985 fork)batch import
help wantedmarkuptype:proposal

Metriche repository

Star
 (5625 stelle)
Metriche merge PR
 (Merge medio 10g 11h) (11 PR mergiate in 30 g)

Descrizione

Feature

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

  • abnf-5234 for rfc5234
  • abnf, alias for abnf-5234
  • abnf-4234 for rfc4234
  • ebnf for ISO-14977 (when supported)
  • sphinx (default)

Sample

.. productionlist::
  :grammar: abnf-5234

  UPPERCASE-ALPHA = %x41-5A ; A-Z
  LOWERCASE-ALPHA = %x61-7A ; a-z

Guida contributor