Rob Shearman : widl: Accept integer constant suffixes in the lexer.
Module: wine Branch: master Commit: 0cb73cef0be2e75cefd8878837df0ecc0599508a URL: http://source.winehq.org/git/wine.git/?a=commit;h=0cb73cef0be2e75cefd8878837... Author: Rob Shearman <rob(a)codeweavers.com> Date: Sun Apr 27 23:05:31 2008 +0100 widl: Accept integer constant suffixes in the lexer. --- tools/widl/parser.l | 6 ++++-- 1 files changed, 4 insertions(+), 2 deletions(-) diff --git a/tools/widl/parser.l b/tools/widl/parser.l index 3bc2b62..c0fbd7d 100644 --- a/tools/widl/parser.l +++ b/tools/widl/parser.l @@ -25,9 +25,11 @@ nl \r?\n ws [ \f\t\r] cident [a-zA-Z_][0-9a-zA-Z_]* -int [0-9]+ +u_suffix (u|U) +l_suffix (l|L) +int [0-9]+({l_suffix}?{u_suffix}?|{u_suffix}?{l_suffix}?)? hexd [0-9a-fA-F] -hex 0(x|X){hexd}+ +hex 0(x|X){hexd}+({l_suffix}?{u_suffix}?|{u_suffix}?{l_suffix}?)? uuid {hexd}{8}-{hexd}{4}-{hexd}{4}-{hexd}{4}-{hexd}{12} double [0-9]+\.[0-9]+([eE][+-]?[0-9]+)*
participants (1)
-
Alexandre Julliard