From dbb6e112ecf7f85b97cff1534db9fed3108b2b71 Mon Sep 17 00:00:00 2001 From: Linus Ericsson Date: Sun, 28 Feb 2016 00:10:33 +0100 Subject: [PATCH] 3*5 was unescaped, rendering italic markup --- docs/ABNF.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/ABNF.md b/docs/ABNF.md index 8938bba..75797b0 100644 --- a/docs/ABNF.md +++ b/docs/ABNF.md @@ -104,7 +104,7 @@ Some important things to be aware of: + According to the ABNF standard, all strings are *case-insensitive*. + ABNF strings do not support any kind of escape characters. Use ABNF's character notation to specify unusual characters. -+ In ABNF, there is one repetition operator, `*`, and it *precedes* the thing that it is operating on. So, for example, 3*5 means "between 3 and 5 repetitions". The first number defaults to 0 and the second defaults to infinity, so you can omit one or both numbers to get effects comparable to EBNF's `+`, `*`, and `?`. `4*4` could just be written as `4`. ++ In ABNF, there is one repetition operator, `*`, and it *precedes* the thing that it is operating on. So, for example, `3*5` means "between 3 and 5 repetitions". The first number defaults to 0 and the second defaults to infinity, so you can omit one or both numbers to get effects comparable to EBNF's `+`, `*`, and `?`. `4*4` could just be written as `4`. + Use `;` for comments to the end of the line. The ABNF specification has rigid definitions about where comments can be, but in instaparse the rules for comment placement are a bit more flexible and intuitive. + ABNF uses `/` for the ordinary alternative operator with no order implied. + ABNF allows the restatement of a rule name to specify multiple alternatives. The custom is to use `=/` in definitions that are adding alternatives, for example `S = 'a' / 'b'` could be written as: