From 23b491733ab314bd9769ce9e9f2a4f375cb46fae Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Fri, 13 Jan 2012 10:18:06 +1000 Subject: Generic type handling, and add the float type. --- LuaSL/src/LuaSL_lexer.l | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'LuaSL/src/LuaSL_lexer.l') diff --git a/LuaSL/src/LuaSL_lexer.l b/LuaSL/src/LuaSL_lexer.l index 2b60634..2b57f68 100644 --- a/LuaSL/src/LuaSL_lexer.l +++ b/LuaSL/src/LuaSL_lexer.l @@ -19,9 +19,9 @@ HEX [[:xdigit:]] DECIMAL [[:digit:]] /* LSL has no octal integer type. */ INTEGER ({DECIMAL}+)|(0[xX]{HEX}+) -EXPONANT [eE][+-]?{DECIMAL} - /* Floats can be "0." but I don't think ".0" is valid. */ -FLOAT {DECIMAL}("."{DECIMAL})?{EXPONANT}?[fF]? +EXPONANT [eE][+-]?{DECIMAL}+ + /* Floats can be "0." but I don't think ".0" is valid. It might be though, need to double check that. */ +FLOAT {DECIMAL}+"."{DECIMAL}*{EXPONANT}?[fF]? CHAR '(\\.|[^\\'\n])+' STRING \"(\\.|[^\\"\n])*\" IDENTIFIER [[:alpha:]](_|[[:alpha:]]|[[:digit:]])* -- cgit v1.1