<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>25312</bug_id>
          
          <creation_ts>2014-04-10 17:30:07 +0000</creation_ts>
          <short_desc>allow trailing commas on enums</short_desc>
          <delta_ts>2015-01-07 08:45:10 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>WebIDL</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WORKSFORME</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ian &apos;Hixie&apos; Hickson">ian</reporter>
          <assigned_to name="Cameron McCormack">cam</assigned_to>
          <cc>bzbarsky</cc>
    
    <cc>contributor</cc>
    
    <cc>ian</cc>
    
    <cc>mike</cc>
    
    <cc>public-script-coord</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>103687</commentid>
    <comment_count>0</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-04-10 17:30:07 +0000</bug_when>
    <thetext>http://heycam.github.io/webidl/#proddef-EnumValueListComma

The Enum production should allow trailing commas, for ease of maintenance.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>103689</commentid>
    <comment_count>1</comment_count>
    <who name="Boris Zbarsky">bzbarsky</who>
    <bug_when>2014-04-10 17:52:59 +0000</bug_when>
    <thetext>Uh.. this already works.  It was fixed in bug 17508.

Here&apos;s an example.  Say you have:

  enum Foo { &quot;foo&quot;, }

The tokenizer sees the &apos;{&apos;, then expects an EnumValueList.  

  EnumValueList	→	string EnumValueListComma

The tokenizer sees the string &quot;foo&quot;, then expects EnumValueListComma.

  EnumValueListComma	→ &quot;,&quot; EnumValueListString
                          | ε

The tokenizer sees a &apos;,&apos;, then expects EnumValueListString

  EnumValueListString	→ string EnumValueListComma
                          | ε

The tokenizer doesn&apos;t see a string, but EnumValueListString is allowed to be empty so we match all that, go back to our Enum production, see the expected &apos;}&apos;, and all is good.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105079</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2014-05-05 21:13:58 +0000</bug_when>
    <thetext>Hm, dunno how I missed those | ε bits. Nevermind!</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>116880</commentid>
    <comment_count>3</comment_count>
    <who name="Anne">annevk</who>
    <bug_when>2015-01-07 08:45:10 +0000</bug_when>
    <thetext>*** Bug 27701 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>