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
Allow comments on interfaces #163
Conversation
Is this for adding comments to WebIDL? (i.e., this would show up in the generated WebIDL?) |
This was conflicting so I closed it but applied on my end. Thanks! |
Ok, but if this going to allow people to create non-conforming WebIDL... not so good, eh? |
It is necessary for being compatible with existing specification drafts using the old respec.js tool. I wonder why I can not fine it in WebIDL spec either. I need to talk with Cameron. All implementations support comments. A reason for a formal objection to WebIDL ;) |
Ok, I was about to write a mail to the WG, but found this in the grammar: whitespace = [\t\n\r ]+|[\t\n\r ]((//.|/._?_/)[\t\n\r ])+ "" So commenting is allowed. Even comments with /* .. */ seem to be allowed. |
Yes, of course comments are allowed. I'm not sure what @marcoscaceres was thinking about, I suspect there's a misunderstanding. @dirkschulze I'm curious about the old ReSpec tool you mention that supported comments. Are you thinking of ReSpec.pm? |
I was thinking of http://dev.w3.org/2009/dap/ReSpec.js/js/respec.js That is the one used for: |
Sorry. Clearly, I'm a dumb ass. I didn't think comments were allowed for some reason. |
@dirkschulze Funny, that's not an official version but a fork with some added features. I'd never heard of it before :) |
@darobin You used it in http://dev.w3.org/2009/dap/device/ . Did you write this clone? |
No, that page uses the canonical ReSpec v1. The FXTF one you point to is using something else! |
@darobin You are right. The Web-Animations guys took the spec from the domain originally. Changes were done by Brian Birtles: https://dvcs.w3.org/hg/FXTF/log/f0bee7474714/web-anim/respec/respec.js Most likely just Web-Animations and Transformation Matrix uses comments, Constructor references and NamedConstructor references yet. I'll speak with Brian to back-port the necessary changes to GitHub. |
This allows comments to be added to interfaces. This recovers the functionality of the old respec tool for commenting.