diff options
author | Eric Anholt <[email protected]> | 2010-08-02 11:26:43 -0700 |
---|---|---|
committer | Eric Anholt <[email protected]> | 2010-08-02 11:26:43 -0700 |
commit | 47f3f223119739efd337ce1757c2e00d61be34cb (patch) | |
tree | c900648c0225b9557e13467974eff4fd7ba109ac /src/glsl/glsl_lexer.lpp | |
parent | 960ba0014af7009f8543c55f455271cf3cb45cd6 (diff) |
glsl2: Add support for floating constants like "1f".
Fixes glsl-floating-constant-120.
Diffstat (limited to 'src/glsl/glsl_lexer.lpp')
-rw-r--r-- | src/glsl/glsl_lexer.lpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/glsl/glsl_lexer.lpp b/src/glsl/glsl_lexer.lpp index 21c81a26635..9fd9b53c5c6 100644 --- a/src/glsl/glsl_lexer.lpp +++ b/src/glsl/glsl_lexer.lpp @@ -236,6 +236,10 @@ layout { yylval->real = strtod(yytext, NULL); return FLOATCONSTANT; } +[0-9]+[fF] { + yylval->real = strtod(yytext, NULL); + return FLOATCONSTANT; + } true { yylval->n = 1; |