W3C home > Mailing lists > Public > public-script-coord@w3.org > July to September 2013

[Bug 20453] 3.1: two questions re underscore removal

From: <bugzilla@jessica.w3.org>
Date: Sun, 04 Aug 2013 20:24:29 +0000
To: public-script-coord@w3.org
Message-ID: <bug-20453-3890-Am6IP0IkLj@http.www.w3.org/Bugs/Public/>
https://www.w3.org/Bugs/Public/show_bug.cgi?id=20453

Michael Dyck <jmdyck@ibiblio.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |---

--- Comment #2 from Michael Dyck <jmdyck@ibiblio.org> ---
I've since noticed two things:

(1) Both the old and new regex allow an identifier token such as _42,
    which would lead to an identifier of just 42, which seems undesireable.

(2) "The identifier of any of the abovementioned IDL constructs MUST NOT ...
    begin with a U+005F LOW LINE ("_") character."
    Which would seem to disallow an identifier token (or at least one that
    provides the identifier for some IDL construct) from having two or more
    leading underscores (which would obviate the original question about
    underscore removal).

So I wonder if the regex for identifier token should be:

    _?[A-Za-z][0-9A-Z_a-z]*

-- 
You are receiving this mail because:
You are on the CC list for the bug.
Received on Sunday, 4 August 2013 20:24:30 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:37:50 UTC