Chromium Code Reviews| Index: Source/bindings/scripts/idl_parser.pm |
| diff --git a/Source/bindings/scripts/idl_parser.pm b/Source/bindings/scripts/idl_parser.pm |
| index 67ea502b7d1f2f82a2b9bd6c9e64d07023d0ed88..656ee0ef38c8108d4876d24ea7d03276619c80c5 100644 |
| --- a/Source/bindings/scripts/idl_parser.pm |
| +++ b/Source/bindings/scripts/idl_parser.pm |
| @@ -233,7 +233,7 @@ my $whitespaceTokenPattern = '^[\t\n\r ]*[\n\r]'; |
| my $floatTokenPattern = '^(-?(([0-9]+\.[0-9]*|[0-9]*\.[0-9]+)([Ee][+-]?[0-9]+)?|[0-9]+[Ee][+-]?[0-9]+))'; |
| my $integerTokenPattern = '^(-?[1-9][0-9]*|-?0[Xx][0-9A-Fa-f]+|-?0[0-7]*)'; |
| my $stringTokenPattern = '^(\"[^\"]*\")'; |
| -my $identifierTokenPattern = '^([A-Z_a-z][0-9A-Z_a-z]*)'; |
| +my $identifierTokenPattern = '^([A-Z_a-z][0-9A-Z_a-z-]*)'; |
|
haraken
2014/01/08 10:45:38
This isn't a right change.
The Web IDL grammar sa
sof
2014/01/08 10:50:12
Either the "identifier" syntactic category is reus
Nils Barth (inactive)
2014/01/08 11:28:29
To concur with haraken:
AFAICT, we want this to ho
|
| my $otherTokenPattern = '^(::|\.\.\.|[^\t\n\r 0-9A-Z_a-z])'; |
| sub getTokenInternal |