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

View file

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

File diff suppressed because one or more lines are too long

File diff suppressed because it is too large Load diff