Skip to content

Commit

Permalink
Specify our usage of ABNF for grammar (#1582)
Browse files Browse the repository at this point in the history
* Specify our usage of ABNF for grammar

* Create 1582.clarification

* Update meta/documentation_style.rst

Co-authored-by: Richard van der Hoff <[email protected]>

---------

Co-authored-by: Richard van der Hoff <[email protected]>
  • Loading branch information
turt2live and richvdh authored Jun 28, 2023
1 parent b2ab339 commit 903b206
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions changelogs/internal/newsfragments/1582.clarification
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Clarify usage of ABNF for grammar in the documentation style guide.
7 changes: 7 additions & 0 deletions meta/documentation_style.rst
Original file line number Diff line number Diff line change
Expand Up @@ -185,3 +185,10 @@ The subheadings which are always deemed as client-affecting are:
* Redactions

When a new subheading is added, it must be referenced and ordered in this document.

Describing grammar
~~~~~~~~~~~~~~~~~~

Use `RFC5234-style ABNF <https://datatracker.ietf.org/doc/html/rfc5234>`_ when describing
the grammar for something in the spec, such as user IDs or server names. Use lowercase
and underscore-deliminated element names (`user_id`, not `UserID` or `user-id`).

0 comments on commit 903b206

Please sign in to comment.