aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-15 21:39:00 +1000
committerDavid Walter Seikel2012-01-15 21:39:00 +1000
commit222a8ef53dbf21282f0d53038a97a3945aeb8d82 (patch)
tree2884ad9e05e247720b885e6ccb909639811ea9a3
parentLittle bit of clean up. (diff)
downloadSledjHamr-222a8ef53dbf21282f0d53038a97a3945aeb8d82.zip
SledjHamr-222a8ef53dbf21282f0d53038a97a3945aeb8d82.tar.gz
SledjHamr-222a8ef53dbf21282f0d53038a97a3945aeb8d82.tar.bz2
SledjHamr-222a8ef53dbf21282f0d53038a97a3945aeb8d82.tar.xz
Updated float matching rule.
-rw-r--r--LuaSL/src/LuaSL_lexer.l4
1 files changed, 2 insertions, 2 deletions
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:]]
19 /* LSL has no octal integer type. */ 19 /* LSL has no octal integer type. */
20INTEGER ({DECIMAL}+)|(0[xX]{HEX}+) 20INTEGER ({DECIMAL}+)|(0[xX]{HEX}+)
21EXPONANT [eE][+-]?{DECIMAL}+ 21EXPONANT [eE][+-]?{DECIMAL}+
22 /* Floats can be "0." but I don't think ".0" is valid. It might be though, need to double check that. */ 22 /* 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.*/
23FLOAT {DECIMAL}+"."{DECIMAL}*{EXPONANT}?[fF]? 23FLOAT {DECIMAL}*"."{DECIMAL}*{EXPONANT}?[fF]?
24CHAR '(\\.|[^\\'\n])+' 24CHAR '(\\.|[^\\'\n])+'
25STRING \"(\\.|[^\\"\n])*\" 25STRING \"(\\.|[^\\"\n])*\"
26IDENTIFIER [[:alpha:]](_|[[:alpha:]]|[[:digit:]])* 26IDENTIFIER [[:alpha:]](_|[[:alpha:]]|[[:digit:]])*