From a7ec8726e2f3c5259c2233cc2ab3fc56147febf9 Mon Sep 17 00:00:00 2001 From: Hans Bolinder Date: Mon, 19 Apr 2010 11:40:22 +0000 Subject: OTP-8567 The word 'spec' is no longer reserved. The function erl_scan:reserved_word/1 no longer returns true when given the word spec. This bug was introduced in STDLIB-1.15.3 (R12B-3). --- lib/stdlib/doc/src/erl_scan.xml | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) (limited to 'lib/stdlib/doc/src') diff --git a/lib/stdlib/doc/src/erl_scan.xml b/lib/stdlib/doc/src/erl_scan.xml index 4175146c3c..1199c34f0f 100644 --- a/lib/stdlib/doc/src/erl_scan.xml +++ b/lib/stdlib/doc/src/erl_scan.xml @@ -4,7 +4,7 @@
- 19962009 + 19962010 Ericsson AB. All Rights Reserved. @@ -13,12 +13,12 @@ compliance with the License. You should have received a copy of the Erlang Public License along with this software. If not, it can be retrieved online at http://www.erlang.org/. - + Software distributed under the License is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License for the specific language governing rights and limitations under the License. - + erl_scan @@ -103,7 +103,7 @@ attributes() = line() | list() | tuple() Info, atom()}, {char, Info, integer()}, {comment, Info, string()}, {float, Info, float()}, {integer, - Info, integer()}, {var, Info, atom()}, + Info, integer()}, {var, Info, atom()}, and {white_space, Info, string()}.

The valid options are:

@@ -149,7 +149,8 @@ attributes() = line() | list() | tuple() StartLocation = EndLocation = location() Options = Option | [Option] Option = {reserved_word_fun,reserved_word_fun()} - | return_comments | return_white_spaces | return + | return_comments | return_white_spaces | return + | text

This is the re-entrant scanner which scans characters until @@ -173,7 +174,7 @@ attributes() = line() | list() | tuple() {error, ErrorInfo, EndLocation}

An error occurred. LeftOverChars is the remaining - characters of the input data, + characters of the input data, starting from EndLocation.

@@ -278,7 +279,7 @@ attributes() = line() | list() | tuple()

The token's symbol.

{text, string()} -

The token's text..

+

The token's text.

@@ -315,7 +316,7 @@ attributes() = line() | list() | tuple() Attributes = attributes() AttributeItemSpec = AttributeItem | [AttributeItem] - AttributesInfo = AttributeInfoTuple | undefined + AttributesInfo = AttributeInfoTuple | undefined | [AttributeInfoTuple] AttributeInfoTuple = {AttributeItem, Info} AttributeItem = atom() @@ -352,7 +353,7 @@ attributes() = line() | list() | tuple() just the line if the column unknown.

{text, string()} -

The token's text..

+

The token's text.

-- cgit v1.2.3