From be10c14e35ee902030cb7a4bbcd291c2aa14b457 Mon Sep 17 00:00:00 2001 From: David Walter Seikel Date: Sat, 21 Jan 2012 16:08:45 +1000 Subject: Comments about LSL identifier quirks. --- LuaSL/src/LuaSL_lexer.l | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'LuaSL/src/LuaSL_lexer.l') 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}+) EXPONANT [eE][+-]?{DECIMAL}+ /* 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.*/ FLOAT {DECIMAL}*"."{DECIMAL}*{EXPONANT}?[fF]? -IDENTIFIER [[:alpha:]](_|[[:alpha:]]|[[:digit:]])* + /* Variable identifiers can have these extra characters at the end or beginning, they will be ignored- #$`'\? */ + /* Function identifiers can start with $ */ +IDENTIFIER (_|[[:alpha:]])(_|[[:alpha:]]|[[:digit:]])* CHAR '(\\.|[^\\'\n])+' KEY \"{HEX}{8}-{HEX}{4}-{HEX}{4}-{HEX}{4}-{HEX}{12}\" STRING \"(\\.|[^\\"\n])*\" -- cgit v1.1