Skip to content

Commit

Permalink
Merge pull request #130 from claj/patch-1
Browse files Browse the repository at this point in the history
3*5 was unescaped, rendering italic markup
  • Loading branch information
Engelberg committed Feb 28, 2016
2 parents 25116e5 + dbb6e11 commit ad17610
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/ABNF.md
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit ad17610

Please sign in to comment.