diff options
author | David Walter Seikel | 2012-01-15 21:39:00 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-15 21:39:00 +1000 |
commit | 222a8ef53dbf21282f0d53038a97a3945aeb8d82 (patch) | |
tree | 2884ad9e05e247720b885e6ccb909639811ea9a3 | |
parent | Little bit of clean up. (diff) | |
download | SledjHamr-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.l | 4 |
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. */ |
20 | INTEGER ({DECIMAL}+)|(0[xX]{HEX}+) | 20 | INTEGER ({DECIMAL}+)|(0[xX]{HEX}+) |
21 | EXPONANT [eE][+-]?{DECIMAL}+ | 21 | EXPONANT [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.*/ |
23 | FLOAT {DECIMAL}+"."{DECIMAL}*{EXPONANT}?[fF]? | 23 | FLOAT {DECIMAL}*"."{DECIMAL}*{EXPONANT}?[fF]? |
24 | CHAR '(\\.|[^\\'\n])+' | 24 | CHAR '(\\.|[^\\'\n])+' |
25 | STRING \"(\\.|[^\\"\n])*\" | 25 | STRING \"(\\.|[^\\"\n])*\" |
26 | IDENTIFIER [[:alpha:]](_|[[:alpha:]]|[[:digit:]])* | 26 | IDENTIFIER [[:alpha:]](_|[[:alpha:]]|[[:digit:]])* |