From dfd4b66c48106edfcbdd1b32e733640e2587acbb Mon Sep 17 00:00:00 2001 From: Hans Bolinder Date: Thu, 3 Dec 2009 12:21:55 +0000 Subject: documentation: Fix bugs introduced in the SGML to XML transition In the transition from SGML to XML (several releases ago), bugs were introduced in the documentation, for instance "\n" replaced by newlines. Correct those bugs. Also correct double backslashes. They seem to have been introduced very early in the development of OTP. According to Lars they "solved" a bug in the generation of HTML &c. Now that standard tools are used instead of docbuilder, the bug has become visible. --- lib/parsetools/doc/src/leex.xml | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) (limited to 'lib/parsetools/doc') diff --git a/lib/parsetools/doc/src/leex.xml b/lib/parsetools/doc/src/leex.xml index c113b586df..12abfd244f 100644 --- a/lib/parsetools/doc/src/leex.xml +++ b/lib/parsetools/doc/src/leex.xml @@ -281,7 +281,7 @@ NAME = VALUE <Regexp> : <Erlang code>.

The <Regexp> must occur at the start of a line and not - include any blanks; use \\t and \\s to include TAB + include any blanks; use \t and \s to include TAB and SPACE characters in the regular expression. If <Regexp> matches then the corresponding <Erlang code> is evaluated to generate a token. With the Erlang code the following predefined @@ -344,7 +344,7 @@ D = [0-9] {D}+ : {token,{integer,TokenLine,list_to_integer(TokenChars)}}. -{D}+\\.{D}+((E|e)(\\+|\\-)?{D}+)? : +{D}+\.{D}+((E|e)(\+|\-)?{D}+)? : {token,{float,TokenLine,list_to_float(TokenChars)}}.

The Erlang code in the "Erlang code." section is written into @@ -367,7 +367,7 @@ D = [0-9] c

Matches the non-metacharacter c.

- \\c + \c

Matches the escape sequence or literal character c.

. @@ -410,33 +410,33 @@ D = [0-9]

The escape sequences allowed are the same as for Erlang strings:

- \\b + \b

Backspace.

- \\f + \f

Form feed.

- \\n + \n

Newline (line feed).

- \\r + \r

Carriage return.

- \\t + \t

Tab.

- \\e + \e

Escape.

- \\v + \v

Vertical tab.

- \\s + \s

Space.

- \\d + \d

Delete.

- \\ddd + \ddd

The octal value ddd.

- \\xhh + \xhh

The hexadecimal value hh.

- \\x{h...} + \x{h...}

The hexadecimal value h....

- \\c -

Any other character literally, for example \\\\ for - backslash, \\" for ".

+ \c +

Any other character literally, for example \\ for + backslash, \" for ".

@@ -446,7 +446,7 @@ Atoms [a-z][0-9a-zA-Z_]* Variables [A-Z_][0-9a-zA-Z_]* -Floats (\\+|-)?[0-9]+\\.[0-9]+((E|e)(\\+|-)?[0-9]+)? +Floats (\+|-)?[0-9]+\.[0-9]+((E|e)(\+|-)?[0-9]+)?

Anchoring a regular expression with ^ and $ is not implemented in the current version of Leex and just -- cgit v1.2.3