[webkit-dev] WebKitIDL syntax: semicolons

Kentaro Hara haraken at chromium.org
Wed Mar 14 07:51:52 PDT 2012


> It seems that the parser doesn't care

Yeah, IDLParser.pm does not care the semicolon for now. You can find
the regular expression in IDLStructure.pm.

> , but is it okay to fix these in the interest of consistency?

Sounds good (although I don't know how much important it is:-).
Please file a bug and cc me.


On Wed, Mar 14, 2012 at 11:38 PM, Seo Sanghyeon <sanxiyn at gmail.com> wrote:
> An example at http://trac.webkit.org/wiki/WebKitIDL suggests that
> interface definitions have semicolons after closing braces (like WebIDL),
> while module definitions don't (unlike WebIDL).
>
> Actual IDL files in the source tree seem to follow that, except following
> 4 files:
>
> SVGAnimateColorElement.idl
> SVGAnimateElement.idl
> SVGAnimateTransformElement.idl
> SVGAnimatedRect.idl
>
> They have semicolons after module definitions but no semicolons
> after interface definitions. (Found with a crude script. There may be more,
> but I think the list is complete.)
>
> It seems that the parser doesn't care, but is it okay to fix these
> in the interest of consistency?
>
> --
> Seo Sanghyeon
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

-- 
Kentaro Hara, Tokyo, Japan (http://haraken.info)


More information about the webkit-dev mailing list