From 222a8ef53dbf21282f0d53038a97a3945aeb8d82 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sun, 15 Jan 2012 21:39:00 +1000 Subject: Updated float matching rule. --- LuaSL/src/LuaSL_lexer.l | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'LuaSL/src/LuaSL_lexer.l') diff --git a/LuaSL/src/LuaSL_lexer.l b/LuaSL/src/LuaSL_lexer.l index 05134bc..8e5e4ca 100644 --- a/LuaSL/src/LuaSL_lexer.l +++ b/LuaSL/src/LuaSL_lexer.l @@ -19,8 +19,8 @@ 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. It might be though, need to double check that. */ -FLOAT {DECIMAL}+"."{DECIMAL}*{EXPONANT}?[fF]? + /* Floats can be "0." or".0", but "." is not valid. At least in OpenSim. A single dot should be caught by the LSL_Dot rule first anyway.*/ +FLOAT {DECIMAL}*"."{DECIMAL}*{EXPONANT}?[fF]? CHAR '(\\.|[^\\'\n])+' STRING \"(\\.|[^\\"\n])*\" IDENTIFIER [[:alpha:]](_|[[:alpha:]]|[[:digit:]])* -- cgit v1.1