sphinx-doc/sphinx

Feature request: support ABNF grammar in productionlist

Offen

#4.454 geöffnet am 18.01.2018

 (3 Kommentare) (1 Reaktion) (0 zugewiesene Personen)Python (1.985 Forks)batch import
help wantedmarkuptype:proposal

Repository-Metriken

Stars
 (5.625 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 10T 11h) (11 gemergte PRs in 30 T)

Beschreibung

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

Contributor Guide