[Bug 20453] 3.1: two questions re underscore removal

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