Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

In draft #31

Merged
merged 2 commits into from
Aug 12, 2016
Merged

In draft #31

merged 2 commits into from
Aug 12, 2016

Conversation

othree
Copy link
Contributor

@othree othree commented May 23, 2015

Based on bzbarsky's comment.
I create another pull request only contains changes already in draft.

  • allow - in identifier
  • allow trailing , in enum

@@ -6,7 +6,7 @@
, re = {
"float": /^-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][-+]?[0-9]+)?|[0-9]+[Ee][-+]?[0-9]+)/
, "integer": /^-?(0([Xx][0-9A-Fa-f]+|[0-7]*)|[1-9][0-9]*)/
, "identifier": /^[A-Z_a-z][0-9A-Z_a-z]*/
, "identifier": /^[A-Z_a-z][0-9A-Z_a-z-]*/
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@heycam, is this actually a good idea in WebIDL? It'll make identifiers that can't be used in Javascript. :-/

@darobin
Copy link
Member

darobin commented Jun 11, 2015

@heycam What was the reason for adding - to identifiers? As @jyasskin points out it seems like a pretty bad idea.

@othree
Copy link
Contributor Author

othree commented Jun 12, 2015

I think it is for CSS rules,ex font-family.

https://github.com/othree/webidl/blob/master/webidl/CSS2Properties.webidl

@darobin
Copy link
Member

darobin commented Jun 12, 2015

@othree Ok, I still think it's a bad idea but since it's in the draft anyway... @othree Do you mind updating the code to be mergeable and to match @jyasskin's second comment please?

@jyasskin
Copy link
Member

jyasskin commented Jul 2, 2015

This looks good to me.

@jyasskin
Copy link
Member

jyasskin commented Jul 2, 2015

Although #33 got the trailing comma, so we can just skip that patch.

@marcoscaceres marcoscaceres merged commit 524000b into w3c:develop Aug 12, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants