Merge pull request #1824 from buildersbrewery/master

updated LSL syntax and made LSL snippets work
This commit is contained in:
Harutyun Amirjanyan 2014-03-21 15:00:59 +04:00
commit 91bc4b82d7
4 changed files with 689 additions and 774 deletions

View file

@ -8,7 +8,7 @@ integer someIntNormal = 3672;
integer someIntHex = 0x00000000; integer someIntHex = 0x00000000;
integer someIntMath = PI_BY_TWO; integer someIntMath = PI_BY_TWO;
integer event = 5673; // unimplemented reserved keyword! integer event = 5673; // invalid.illegal
key someKeyTexture = TEXTURE_DEFAULT; key someKeyTexture = TEXTURE_DEFAULT;
string someStringSpecial = EOF; string someStringSpecial = EOF;
@ -53,12 +53,12 @@ default
someIntHex = 0x00000000; someIntHex = 0x00000000;
someIntMath = PI_BY_TWO; someIntMath = PI_BY_TWO;
event = 5673; // unimplemented reserved keyword! event = 5673; // invalid.illegal
someKeyTexture = TEXTURE_DEFAULT; someKeyTexture = TEXTURE_DEFAULT;
someStringSpecial = EOF; someStringSpecial = EOF;
llCloud(ZERO_VECTOR); // invalid deprecated function! llSetInventoryPermMask("some item", MASK_NEXT, PERM_ALL); // reserved.godmode
llWhisper(PUBLIC_CHANNEL, "Leaving \"default\" now..."); llWhisper(PUBLIC_CHANNEL, "Leaving \"default\" now...");
state other; state other;

View file

@ -1,6 +1,6 @@
[[ [[
"comment", "comment",
["comment.block.lsl","/*"] ["comment.block.begin.lsl","/*"]
],[ ],[
"comment", "comment",
["comment.block.lsl"," Testing syntax highlighting"] ["comment.block.lsl"," Testing syntax highlighting"]
@ -12,7 +12,7 @@
["comment.block.lsl"," for the Linden Scripting Language"] ["comment.block.lsl"," for the Linden Scripting Language"]
],[ ],[
"start", "start",
["comment.block.lsl","*/"] ["comment.block.end.lsl","*/"]
],[ ],[
"start" "start"
],[ ],[
@ -51,14 +51,14 @@
"start", "start",
["storage.type.lsl","integer"], ["storage.type.lsl","integer"],
["text.lsl"," "], ["text.lsl"," "],
["invalid.unimplemented.lsl","event"], ["invalid.illegal.lsl","event"],
["text.lsl"," "], ["text.lsl"," "],
["keyword.operator.lsl","="], ["keyword.operator.lsl","="],
["text.lsl"," "], ["text.lsl"," "],
["constant.numeric.lsl","5673"], ["constant.numeric.lsl","5673"],
["punctuation.operator.lsl",";"], ["punctuation.operator.lsl",";"],
["text.lsl"," "], ["text.lsl"," "],
["comment.line.double-slash.lsl","// unimplemented reserved keyword!"] ["comment.line.double-slash.lsl","// invalid.illegal"]
],[ ],[
"start" "start"
],[ ],[
@ -368,14 +368,14 @@
],[ ],[
"start", "start",
["text.lsl"," "], ["text.lsl"," "],
["invalid.unimplemented.lsl","event"], ["invalid.illegal.lsl","event"],
["text.lsl"," "], ["text.lsl"," "],
["keyword.operator.lsl","="], ["keyword.operator.lsl","="],
["text.lsl"," "], ["text.lsl"," "],
["constant.numeric.lsl","5673"], ["constant.numeric.lsl","5673"],
["punctuation.operator.lsl",";"], ["punctuation.operator.lsl",";"],
["text.lsl"," "], ["text.lsl"," "],
["comment.line.double-slash.lsl","// unimplemented reserved keyword!"] ["comment.line.double-slash.lsl","// invalid.illegal"]
],[ ],[
"start" "start"
],[ ],[
@ -401,13 +401,21 @@
],[ ],[
"start", "start",
["text.lsl"," "], ["text.lsl"," "],
["invalid.deprecated.lsl","llCloud"], ["reserved.godmode.lsl","llSetInventoryPermMask"],
["paren.lparen.lsl","("], ["paren.lparen.lsl","("],
["constant.language.vector.lsl","ZERO_VECTOR"], ["string.quoted.double.lsl.start","\""],
["string.quoted.double.lsl","some item"],
["string.quoted.double.lsl.end","\""],
["punctuation.operator.lsl",","],
["text.lsl"," "],
["constant.language.integer.lsl","MASK_NEXT"],
["punctuation.operator.lsl",","],
["text.lsl"," "],
["constant.language.integer.lsl","PERM_ALL"],
["paren.rparen.lsl",")"], ["paren.rparen.lsl",")"],
["punctuation.operator.lsl",";"], ["punctuation.operator.lsl",";"],
["text.lsl"," "], ["text.lsl"," "],
["comment.line.double-slash.lsl","// invalid deprecated function!"] ["comment.line.double-slash.lsl","// reserved.godmode"]
],[ ],[
"start" "start"
],[ ],[
@ -420,9 +428,9 @@
["text.lsl"," "], ["text.lsl"," "],
["string.quoted.double.lsl.start","\""], ["string.quoted.double.lsl.start","\""],
["string.quoted.double.lsl","Leaving "], ["string.quoted.double.lsl","Leaving "],
["constant.language.escape.lsl","\\\""], ["constant.character.escape.lsl","\\\""],
["string.quoted.double.lsl","default"], ["string.quoted.double.lsl","default"],
["constant.language.escape.lsl","\\\""], ["constant.character.escape.lsl","\\\""],
["string.quoted.double.lsl"," now..."], ["string.quoted.double.lsl"," now..."],
["string.quoted.double.lsl.end","\""], ["string.quoted.double.lsl.end","\""],
["paren.rparen.lsl",")"], ["paren.rparen.lsl",")"],
@ -467,13 +475,13 @@
["text.lsl"," "], ["text.lsl"," "],
["string.quoted.double.lsl.start","\""], ["string.quoted.double.lsl.start","\""],
["string.quoted.double.lsl","Entered "], ["string.quoted.double.lsl","Entered "],
["constant.language.escape.lsl","\\\""], ["constant.character.escape.lsl","\\\""],
["string.quoted.double.lsl","state other"], ["string.quoted.double.lsl","state other"],
["constant.language.escape.lsl","\\\""], ["constant.character.escape.lsl","\\\""],
["string.quoted.double.lsl",", returning to "], ["string.quoted.double.lsl",", returning to "],
["constant.language.escape.lsl","\\\""], ["constant.character.escape.lsl","\\\""],
["string.quoted.double.lsl","default"], ["string.quoted.double.lsl","default"],
["constant.language.escape.lsl","\\\""], ["constant.character.escape.lsl","\\\""],
["string.quoted.double.lsl"," again..."], ["string.quoted.double.lsl"," again..."],
["string.quoted.double.lsl.end","\""], ["string.quoted.double.lsl.end","\""],
["paren.rparen.lsl",")"], ["paren.rparen.lsl",")"],
@ -492,4 +500,4 @@
["paren.rparen.lsl","}"] ["paren.rparen.lsl","}"]
],[ ],[
"start" "start"
]] ]]

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff