diff options
Diffstat (limited to 'LuaSL/src/LuaSL_lexer.l')
-rw-r--r-- | LuaSL/src/LuaSL_lexer.l | 6 |
1 files changed, 3 insertions, 3 deletions
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:]] | |||
19 | DECIMAL [[:digit:]] | 19 | DECIMAL [[:digit:]] |
20 | /* LSL has no octal integer type. */ | 20 | /* LSL has no octal integer type. */ |
21 | INTEGER ({DECIMAL}+)|(0[xX]{HEX}+) | 21 | INTEGER ({DECIMAL}+)|(0[xX]{HEX}+) |
22 | EXPONANT [eE][+-]?{DECIMAL} | 22 | EXPONANT [eE][+-]?{DECIMAL}+ |
23 | /* Floats can be "0." but I don't think ".0" is valid. */ | 23 | /* Floats can be "0." but I don't think ".0" is valid. It might be though, need to double check that. */ |
24 | FLOAT {DECIMAL}("."{DECIMAL})?{EXPONANT}?[fF]? | 24 | FLOAT {DECIMAL}+"."{DECIMAL}*{EXPONANT}?[fF]? |
25 | CHAR '(\\.|[^\\'\n])+' | 25 | CHAR '(\\.|[^\\'\n])+' |
26 | STRING \"(\\.|[^\\"\n])*\" | 26 | STRING \"(\\.|[^\\"\n])*\" |
27 | IDENTIFIER [[:alpha:]](_|[[:alpha:]]|[[:digit:]])* | 27 | IDENTIFIER [[:alpha:]](_|[[:alpha:]]|[[:digit:]])* |