diff options
-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:]])* |