diff options
Diffstat (limited to 'LuaSL')
-rw-r--r-- | LuaSL/src/LuaSL_lexer.l | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/LuaSL/src/LuaSL_lexer.l b/LuaSL/src/LuaSL_lexer.l index e3ef214..1d2548a 100644 --- a/LuaSL/src/LuaSL_lexer.l +++ b/LuaSL/src/LuaSL_lexer.l | |||
@@ -21,7 +21,9 @@ INTEGER ({DECIMAL}+)|(0[xX]{HEX}+) | |||
21 | EXPONANT [eE][+-]?{DECIMAL}+ | 21 | EXPONANT [eE][+-]?{DECIMAL}+ |
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.*/ | 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 | IDENTIFIER [[:alpha:]](_|[[:alpha:]]|[[:digit:]])* | 24 | /* Variable identifiers can have these extra characters at the end or beginning, they will be ignored- #$`'\? */ |
25 | /* Function identifiers can start with $ */ | ||
26 | IDENTIFIER (_|[[:alpha:]])(_|[[:alpha:]]|[[:digit:]])* | ||
25 | CHAR '(\\.|[^\\'\n])+' | 27 | CHAR '(\\.|[^\\'\n])+' |
26 | KEY \"{HEX}{8}-{HEX}{4}-{HEX}{4}-{HEX}{4}-{HEX}{12}\" | 28 | KEY \"{HEX}{8}-{HEX}{4}-{HEX}{4}-{HEX}{4}-{HEX}{12}\" |
27 | STRING \"(\\.|[^\\"\n])*\" | 29 | STRING \"(\\.|[^\\"\n])*\" |