diff options
author | David Walter Seikel | 2012-01-21 16:08:45 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-21 16:08:45 +1000 |
commit | be10c14e35ee902030cb7a4bbcd291c2aa14b457 (patch) | |
tree | c56c620ecdb943cdfc74a02f4077d647b0a21127 /LuaSL | |
parent | Add some function calls to the LSL constants script. (diff) | |
download | SledjHamr-be10c14e35ee902030cb7a4bbcd291c2aa14b457.zip SledjHamr-be10c14e35ee902030cb7a4bbcd291c2aa14b457.tar.gz SledjHamr-be10c14e35ee902030cb7a4bbcd291c2aa14b457.tar.bz2 SledjHamr-be10c14e35ee902030cb7a4bbcd291c2aa14b457.tar.xz |
Comments about LSL identifier quirks.
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])*\" |