diff options
author | Vincent Sanders <vincent.sanders@collabora.co.uk> | 2012-09-06 19:07:15 +0100 |
---|---|---|
committer | Vincent Sanders <vincent.sanders@collabora.co.uk> | 2012-09-06 19:07:15 +0100 |
commit | 3db9b84cd1a23f4718260a6b2487dcedbb7fc526 (patch) | |
tree | 9cc3e7e204d07659333439c33c5dacee81c1ba3d /src/webidl-lexer.l | |
parent | 24f1407f1f30993ee8dd35d2f52409bcba839a8f (diff) | |
download | nsgenbind-3db9b84cd1a23f4718260a6b2487dcedbb7fc526.tar.gz nsgenbind-3db9b84cd1a23f4718260a6b2487dcedbb7fc526.tar.bz2 |
move towards having a binding stanza
Diffstat (limited to 'src/webidl-lexer.l')
-rw-r--r-- | src/webidl-lexer.l | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/webidl-lexer.l b/src/webidl-lexer.l index 20ee4c5..0a0a5df 100644 --- a/src/webidl-lexer.l +++ b/src/webidl-lexer.l @@ -87,7 +87,7 @@ escseq {characterescseq}|0|{hexescseq}|{unicodeescseq} quotedstring ([^\"\\\n\r]|\\{escseq}) /* web idl identifier direct from spec */ -Identifier [A-Z_a-z][0-9A-Z_a-z]* +identifier [A-Z_a-z][0-9A-Z_a-z]* /* web idl other direct from spec */ other [^\t\n\r 0-9A-Z_a-z] @@ -193,8 +193,9 @@ void return TOK_VOID; readonly return TOK_READONLY; -{Identifier} { - // A leading "_" is used to escape an identifier from looking like a reserved word terminal. +{identifier} { + /* A leading "_" is used to escape an identifier from + * looking like a reserved word terminal. */ yylval->text = (yytext[0] == '_') ? strdup(yytext + 1) : strdup(yytext); return TOK_IDENTIFIER; } |