From 9a3a3c0170a6a521bf04fa4611cdec46043983e6 Mon Sep 17 00:00:00 2001 From: Alexander Iljin Date: Fri, 30 Sep 2016 18:54:17 +0300 Subject: [PATCH] peg.ebnf-docs: add note on including "-" in the character classes --- basis/peg/ebnf/ebnf-docs.factor | 1 + 1 file changed, 1 insertion(+) diff --git a/basis/peg/ebnf/ebnf-docs.factor b/basis/peg/ebnf/ebnf-docs.factor index d17003c53d..50a8162e15 100644 --- a/basis/peg/ebnf/ebnf-docs.factor +++ b/basis/peg/ebnf/ebnf-docs.factor @@ -193,6 +193,7 @@ ARTICLE: "peg.ebnf.character-class" "EBNF Rule: Character Class" "square brackets. Multiple ranges can be included in a single character class " "definition. The syntax for the range is a start character, followed by a minus " "(-) followed by an end character. For example " { $snippet "[a-zA-Z]" } ". " +"To include the minus (-) character in the class, make it the first or the last one: " { $snippet "[-0-9]" } " or " { $snippet "[a-z-]" } ". " "The AST resulting from the match is an integer of the character code for the " "character that matched." { $examples