diff --git a/demo/kitchen-sink/docs/lsl.lsl b/demo/kitchen-sink/docs/lsl.lsl index e7ee8472..185b9dd4 100644 --- a/demo/kitchen-sink/docs/lsl.lsl +++ b/demo/kitchen-sink/docs/lsl.lsl @@ -1,222 +1,75 @@ -//////////////////////////////////////////////////////////////////// -// -// AbcText -// by Ange Capalini -// Originally Written 10/31/2011 -// code released to the public domain -// -//////////////////////////////////////////////////////////////////// - - -//================================================================== -// INSTRUCTIONS -//================================================================== -// -// - set Max Particles to 4096 -// - create white cube "board" <15.500, 0.010, 0.800> -// - create red cube "cursor" <0.050, 0.010, 0.030> & drop AbcText -// - link cursor (child) to board (root) -// - send message <= 25 char. to chanel 20 -// - that's all folk's -// -///////////////////////////////////////////////////////////////////// - - -//=========================================== -// CONSTANTS -//=========================================== -float Size_Point = 0.1; //pixel size -string Txt_Point = ""; //pixel texture -vector Color_Point = < 0., 0., 1. >; //pixel color -vector Size_Affich = <15.5, .01, .8>; //display size - -//=========================================== -// GLOBALS VARIABLES -//=========================================== -list Alphabet = [ " ", - "A", "B", "C", "D", "E", "F", "G", "H", "I", "J", "K", "L", "M", - "N", "O", "P", "Q", "R", "S", "T", "U", "V", "W", "X", "Y", "Z", - - "a", "b", "c", "d", "e", "f", "g", "h", "i", "j", "k", "l", "m", - "n", "o", "p", "q", "r", "s", "t", "u", "v", "w", "x", "y", "z", - - "0", "1", "2", "3", "4", "5", "6", "7", "8", "9", - - ":", "'", ",", "!", "?", "#", ".", "/", "-", "é", "è", "à" ]; - -//char matrix 6 x 5 points -list Matrices = [ " ", - "011001001010010111101001000000", //A - "111001001011100100101110000000", - "011001000010000100000110000000", - "111001001010010100101110000000", - "111001000011100100001110000000", - "111001000011100100001000000000", - "011101000010110100100111000000", - "100101001011110100101001000000", - "111000100001000010001110000000", - "001100001000010100100110000000", - "100101010011000101001001000000", - "100001000010000100001110000000", - "100011101110101100011000100000", - "100101101010110100101001000000", - "011001001010010100100110000000", - "111001001010010111001000000000", - "011001001010010100100110000010", - "111001001010010111001001000000", - "011101000001100000101110000000", - "111000100001000010000100000000", - "100101001010010100100110000000", - "100101001010100101000100000000", - "100011010110101101010101000000", - "100101001001100100101001000000", - "100101001001110000100110000000", - "111100001001100100001111000000", //Z - - "000000110010010100100111000000", //a - "100001110010010100101110000000", - "000000110010000100000110000000", - "000100111010010100100111000000", - "000000111010010101000111000000", - "011001000011000100001000000000", - "011001001010010011100001001100", - "100001110010010100101001000000", - "100000000010000100001000000000", - "001000000000100001000010011000", - "100001001010100110101001000000", - "100001000010000100001000000000", - "000001101010101101011010100000", - "000001110010010100101001000000", - "000000110010010100100110000000", - "111001001010010111001000010000", - "011101001010010011100001000010", - "000001010011000100001000000000", - "000000111011000001101110000000", - "010001110001000010000100000000", - "000001001010010100100111000000", - "000001001010010100100110000000", - "000001010110101101010101000000", - "000001001001100011001001000000", - "100101001010010011100001001100", - "000001111000100010001111000000", //z - - "011001001010010100100110000000", //0 - "011000010000100001000010000000", - "111000001001100100001111000000", - "111000001001100000101110000000", - "001000110010100111100010000000", - "111101000011100000101110000000", - "011001000011100100100110000000", - "111100001000100010000100000000", - "011001001001100100100110000000", - "011001001001110000100110000000", //9 - - "000000000000100000000010000000", //: - "000100010000000000000000000000", - "000000000000000000100010000000", - "001000010000100000000010000000", - "001000101000010001000000000100", - "010101111101010111110101000000", - "000000000000000000000010000000", - "000010001000100010001000000000", - "000000000001110000000000000000", - "000100110010010101000111000000", - "010000111010010101000111000000", - "010000110010010100100111000000" //à - ]; - -list Particle_Parameters=[]; -vector Origine; -string Texte; -integer id_Phrase; -integer len_Phrase; -integer id_Lettre; -string Lettre; -string matrice_Lettre; -vector point_zero; -integer x; -integer z; - -//=========================================== -// SET PARTICLES -//=========================================== - -init_particles(){ - - Particle_Parameters = [ - PSYS_SRC_TEXTURE, Txt_Point, - PSYS_PART_START_SCALE, < Size_Point, Size_Point, FALSE >, - PSYS_PART_END_SCALE, < Size_Point, Size_Point, FALSE >, - PSYS_PART_START_COLOR, Color_Point, - PSYS_PART_END_COLOR, Color_Point, - - PSYS_SRC_BURST_PART_COUNT, (integer)1, - PSYS_SRC_BURST_RATE, (float) 0.0, - PSYS_PART_MAX_AGE, (float) 30.0, - - PSYS_SRC_PATTERN, (integer) 1, - - PSYS_PART_FLAGS, - PSYS_PART_EMISSIVE_MASK - ]; +/* + Testing syntax highlighting + of Ace Editor + for the Linden Scripting Language +*/ + +integer someIntNormal = 3672; +integer someIntHex = 0x00000000; +integer someIntMath = PI_BY_TWO; + +integer event = 5673; // invalid reserved keyword! + +key someKeyTexture = TEXTURE_DEFAULT; +string someStringSpecial = EOF; + +some_user_defined_function_without_return_type(string inputAsString) +{ + llSay(PUBLIC_CHANNEL, inputAsString); } - -//=========================================== -// SET DISPLAY -//=========================================== -affichage (string phrase) { - - integer len_Phrase = llStringLength(phrase)-1; - for(id_Phrase = 0; id_Phrase <= len_Phrase;++id_Phrase){ - Lettre = llGetSubString(phrase, id_Phrase, id_Phrase); - id_Lettre = llListFindList(Alphabet, [Lettre]); - matrice_Lettre = llList2String(Matrices, id_Lettre); - z=0; - do{ - x=0; - do{ - if( (integer)llGetSubString(matrice_Lettre, x + 5*z, x + 5*z) ) { - llSetLinkPrimitiveParamsFast(LINK_THIS, [PRIM_POSITION, point_zero + < x*Size_Point, 0.0, -z*Size_Point > ]); - llParticleSystem( Particle_Parameters ); - llSleep(0.12); - llParticleSystem( [] ); - } - } while( ++x <= 4); - } while( ++z <= 5); - - point_zero += < 6. * Size_Point, 0.0, 0.0 >; //locate next char + +string user_defined_function_returning_a_string(key inputAsKey) +{ + return (string)inputAsKey; +} + +default +{ + state_entry() + { + key someKey = NULL_KEY; + someKey = llGetOwner(); + + string someString = user_defined_function_returning_a_string(someKey); + + some_user_defined_function_without_return_type(someString); + } + + touch_start(integer num_detected) + { + list agentsInRegion = llGetAgentList(AGENT_LIST_REGION, []); + integer numOfAgents = llGetListLength(agentsInRegion); + + integer index; // defaults to 0 + for (; index <= numOfAgents - 1; index++) // for each agent in region + { + llRegionSayTo(llList2Key(agentsInRegion, index), PUBLIC_CHANNEL, "Hello, Avatar!"); + } + } + + touch_end(integer num_detected) + { + someIntNormal = 3672; + someIntHex = 0x00000000; + someIntMath = PI_BY_TWO; + + event = 5673; // invalid reserved keyword! + + someKeyTexture = TEXTURE_DEFAULT; + someStringSpecial = EOF; + + llCollisionSprite(someKeyTexture); // invalid deprecated function! + + llWhisper(PUBLIC_CHANNEL, "Leaving \"default\" now..."); + state other; } } -///////////////////////////////////// -///////////////////////////////////// -///////////////////////////////////// -///////////////////////////////////// - - -default { - - state_entry() { - - llListen(20, "", llGetOwner(), ""); - init_particles(); - Origine = < (-0.48 * Size_Affich.x) , (-1.25 * Size_Point) , (0.3 * Size_Affich.z) >; //raz cursor + +state other +{ + state_entry() + { + llWhisper(PUBLIC_CHANNEL, "Entered \"state other\", returning to \"default\" again..."); + state default; } - - listen( integer channel, string name, key id, string msg ) { - - Texte = msg; - point_zero = Origine; //raz cursor - llSetTimerEvent(30.); - affichage(Texte); - } - - timer(){ - - point_zero = Origine; //raz cursor - affichage(Texte); - } - - on_rez(integer param) {llResetScript();} - changed(integer mask) {if(mask & CHANGED_OWNER) {llResetScript();}} - } diff --git a/lib/ace/mode/_test/tokens_lsl.json b/lib/ace/mode/_test/tokens_lsl.json index bc4e01c0..c51c0a6f 100644 --- a/lib/ace/mode/_test/tokens_lsl.json +++ b/lib/ace/mode/_test/tokens_lsl.json @@ -1,1623 +1,430 @@ [[ - "start", - ["comment.line","//////////////////////////////////////////////////////////////////// "] + "comment", + ["comment.block","/*"] +],[ + "comment", + ["comment.block"," Testing syntax highlighting"] +],[ + "comment", + ["comment.block"," of Ace Editor"] +],[ + "comment", + ["comment.block"," for the Linden Scripting Language"] ],[ "start", - ["comment.line","//"] + ["comment.block","*/"] +],[ + "start" ],[ "start", - ["comment.line","// AbcText"] -],[ - "start", - ["comment.line","// by Ange Capalini"] -],[ - "start", - ["comment.line","// Originally Written 10/31/2011"] -],[ - "start", - ["comment.line","// code released to the public domain"] -],[ - "start", - ["comment.line","// "] -],[ - "start", - ["comment.line","//////////////////////////////////////////////////////////////////// "] -],[ - "start", - ["text"," "] -],[ - "start", - ["text"," "] -],[ - "start", - ["comment.line","//=================================================================="] -],[ - "start", - ["comment.line","// INSTRUCTIONS"] -],[ - "start", - ["comment.line","//=================================================================="] -],[ - "start", - ["comment.line","//"] -],[ - "start", - ["comment.line","// - set Max Particles to 4096"] -],[ - "start", - ["comment.line","// - create white cube \"board\" <15.500, 0.010, 0.800>"] -],[ - "start", - ["comment.line","// - create red cube \"cursor\" <0.050, 0.010, 0.030> & drop AbcText"] -],[ - "start", - ["comment.line","// - link cursor (child) to board (root)"] -],[ - "start", - ["comment.line","// - send message <= 25 char. to chanel 20"] -],[ - "start", - ["comment.line","// - that's all folk's"] -],[ - "start", - ["comment.line","//"] -],[ - "start", - ["comment.line","/////////////////////////////////////////////////////////////////////"] -],[ - "start", - ["text"," "] -],[ - "start", - ["text"," "] -],[ - "start", - ["comment.line","//==========================================="] -],[ - "start", - ["comment.line","// CONSTANTS"] -],[ - "start", - ["comment.line","//==========================================="] -],[ - "start", - ["storage.type","float"], - ["text"," "], - ["identifier","Size_Point"], + ["storage.type","integer"], ["text"," "], + ["identifier","someIntNormal"], + ["text"," "], ["keyword.operator","="], ["text"," "], - ["constant.numeric","0.1"], - ["punctuation.operator",";"], + ["constant.numeric","3672"], + ["punctuation.operator",";"] +],[ + "start", + ["storage.type","integer"], ["text"," "], - ["comment.line","//pixel size"] + ["identifier","someIntHex"], + ["text"," "], + ["keyword.operator","="], + ["text"," "], + ["constant.numeric","0x00000000"], + ["punctuation.operator",";"] +],[ + "start", + ["storage.type","integer"], + ["text"," "], + ["identifier","someIntMath"], + ["text"," "], + ["keyword.operator","="], + ["text"," "], + ["constant.language","PI_BY_TWO"], + ["punctuation.operator",";"] +],[ + "start" +],[ + "start", + ["storage.type","integer"], + ["text"," "], + ["invalid.illegal","event"], + ["text"," "], + ["keyword.operator","="], + ["text"," "], + ["constant.numeric","5673"], + ["punctuation.operator",";"], + ["text"," "], + ["comment.line","// invalid reserved keyword!"] +],[ + "start" +],[ + "start", + ["storage.type","key"], + ["text"," "], + ["identifier","someKeyTexture"], + ["text"," "], + ["keyword.operator","="], + ["text"," "], + ["constant.language","TEXTURE_DEFAULT"], + ["punctuation.operator",";"] ],[ "start", ["storage.type","string"], ["text"," "], - ["identifier","Txt_Point"], - ["text"," "], - ["keyword.operator","="], - ["text"," "], - ["string.double","\"\""], - ["punctuation.operator",";"], - ["text"," "], - ["comment.line","//pixel texture"] -],[ - "start", - ["storage.type","vector"], - ["text"," "], - ["identifier","Color_Point"], - ["text"," "], - ["keyword.operator","="], - ["text"," "], - ["keyword.operator","<"], - ["text"," "], - ["constant.numeric","0"], - ["punctuation.operator",".,"], - ["text"," "], - ["constant.numeric","0"], - ["punctuation.operator",".,"], - ["text"," "], - ["constant.numeric","1"], - ["punctuation.operator","."], - ["text"," "], - ["keyword.operator",">"], - ["punctuation.operator",";"], - ["text"," "], - ["comment.line","//pixel color"] -],[ - "start", - ["storage.type","vector"], - ["text"," "], - ["identifier","Size_Affich"], - ["text"," "], - ["keyword.operator","="], - ["text"," "], - ["keyword.operator","<"], - ["constant.numeric","15.5"], - ["punctuation.operator",","], - ["text"," "], - ["punctuation.operator","."], - ["constant.numeric","01"], - ["punctuation.operator",","], - ["text"," "], - ["punctuation.operator","."], - ["constant.numeric","8"], - ["keyword.operator",">"], - ["punctuation.operator",";"], - ["text"," "], - ["comment.line","//display size"] -],[ - "start", - ["text"," "] -],[ - "start", - ["comment.line","//==========================================="] -],[ - "start", - ["comment.line","// GLOBALS VARIABLES"] -],[ - "start", - ["comment.line","//==========================================="] -],[ - "start", - ["storage.type","list"], - ["text"," "], - ["identifier","Alphabet"], - ["text"," "], - ["keyword.operator","="], - ["text"," "], - ["paren.lparen","["], - ["text"," "], - ["string.double","\" \""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"A\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"B\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"C\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"D\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"E\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"F\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"G\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"H\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"I\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"J\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"K\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"L\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"M\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"N\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"O\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"P\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"Q\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"R\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"S\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"T\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"U\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"V\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"W\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"X\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"Y\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"Z\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "] -],[ - "start", - ["text"," "], - ["string.double","\"a\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"b\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"c\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"d\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"e\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"f\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"g\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"h\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"i\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"j\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"k\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"l\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"m\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"n\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"o\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"p\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"q\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"r\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"s\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"t\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"u\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"v\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"w\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"x\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"y\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"z\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "] -],[ - "start", - ["text"," "], - ["string.double","\"0\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"1\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"2\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"3\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"4\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"5\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"6\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"7\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"8\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"9\""], - ["punctuation.operator",","], - ["text"," "] -],[ - "start", - ["text"," "] -],[ - "start", - ["text"," "], - ["string.double","\":\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"'\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\",\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"!\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"?\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"#\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\".\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"/\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"-\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"�\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"�\""], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"�\""], - ["text"," "], - ["paren.rparen","]"], - ["punctuation.operator",";"] -],[ - "start", - ["text"," "] -],[ - "start", - ["comment.line","//char matrix 6 x 5 points"] -],[ - "start", - ["storage.type","list"], - ["text"," "], - ["identifier","Matrices"], - ["text"," "], - ["keyword.operator","="], - ["text"," "], - ["paren.lparen","["], - ["text"," "], - ["string.double","\" \""], - ["punctuation.operator",","], - ["text"," "] -],[ - "start", - ["text"," "], - ["string.double","\"011001001010010111101001000000\""], - ["punctuation.operator",","], - ["text"," "], - ["comment.line","//A"] -],[ - "start", - ["text"," "], - ["string.double","\"111001001011100100101110000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"011001000010000100000110000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"111001001010010100101110000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"111001000011100100001110000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"111001000011100100001000000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"011101000010110100100111000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"100101001011110100101001000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"111000100001000010001110000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"001100001000010100100110000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"100101010011000101001001000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"100001000010000100001110000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"100011101110101100011000100000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"100101101010110100101001000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"011001001010010100100110000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"111001001010010111001000000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"011001001010010100100110000010\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"111001001010010111001001000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"011101000001100000101110000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"111000100001000010000100000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"100101001010010100100110000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"100101001010100101000100000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"100011010110101101010101000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"100101001001100100101001000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"100101001001110000100110000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"111100001001100100001111000000\""], - ["punctuation.operator",","], - ["text"," "], - ["comment.line","//Z"] -],[ - "start", - ["text"," "] -],[ - "start", - ["text"," "], - ["string.double","\"000000110010010100100111000000\""], - ["punctuation.operator",","], - ["text"," "], - ["comment.line","//a"] -],[ - "start", - ["text"," "], - ["string.double","\"100001110010010100101110000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"000000110010000100000110000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"000100111010010100100111000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"000000111010010101000111000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"011001000011000100001000000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"011001001010010011100001001100\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"100001110010010100101001000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"100000000010000100001000000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"001000000000100001000010011000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"100001001010100110101001000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"100001000010000100001000000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"000001101010101101011010100000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"000001110010010100101001000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"000000110010010100100110000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"111001001010010111001000010000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"011101001010010011100001000010\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"000001010011000100001000000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"000000111011000001101110000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"010001110001000010000100000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"000001001010010100100111000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"000001001010010100100110000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"000001010110101101010101000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"000001001001100011001001000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"100101001010010011100001001100\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"000001111000100010001111000000\""], - ["punctuation.operator",","], - ["text"," "], - ["comment.line","//z"] -],[ - "start", - ["text"," "] -],[ - "start", - ["text"," "], - ["string.double","\"011001001010010100100110000000\""], - ["punctuation.operator",","], - ["text"," "], - ["comment.line","//0"] -],[ - "start", - ["text"," "], - ["string.double","\"011000010000100001000010000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"111000001001100100001111000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"111000001001100000101110000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"001000110010100111100010000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"111101000011100000101110000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"011001000011100100100110000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"111100001000100010000100000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"011001001001100100100110000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"011001001001110000100110000000\""], - ["punctuation.operator",","], - ["text"," "], - ["comment.line","//9"] -],[ - "start", - ["text"," "] -],[ - "start", - ["text"," "], - ["string.double","\"000000000000100000000010000000\""], - ["punctuation.operator",","], - ["text"," "], - ["comment.line","//:"] -],[ - "start", - ["text"," "], - ["string.double","\"000100010000000000000000000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"000000000000000000100010000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"001000010000100000000010000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"001000101000010001000000000100\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"010101111101010111110101000000\""], - ["punctuation.operator",","], - ["text"," "] -],[ - "start", - ["text"," "], - ["string.double","\"000000000000000000000010000000\""], - ["punctuation.operator",","], - ["text"," "] -],[ - "start", - ["text"," "], - ["string.double","\"000010001000100010001000000000\""], - ["punctuation.operator",","], - ["text"," "] -],[ - "start", - ["text"," "], - ["string.double","\"000000000001110000000000000000\""], - ["punctuation.operator",","], - ["text"," "] -],[ - "start", - ["text"," "], - ["string.double","\"000100110010010101000111000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"010000111010010101000111000000\""], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["string.double","\"010000110010010100100111000000\""], - ["text"," "], - ["comment.line","//�"] -],[ - "start", - ["text"," "], - ["paren.rparen","]"], - ["punctuation.operator",";"] -],[ - "start", - ["text"," "] -],[ - "start", - ["storage.type","list"], + ["identifier","someStringSpecial"], ["text"," "], - ["identifier","Particle_Parameters"], ["keyword.operator","="], - ["paren.lparen","["], - ["paren.rparen","]"], - ["punctuation.operator",";"] -],[ - "start", - ["storage.type","vector"], - ["text"," "], - ["identifier","Origine"], - ["punctuation.operator",";"] -],[ - "start", - ["storage.type","string"], - ["text"," "], - ["identifier","Texte"], - ["punctuation.operator",";"] -],[ - "start", - ["storage.type","integer"], ["text"," "], - ["identifier","id_Phrase"], + ["constant.language","EOF"], ["punctuation.operator",";"] ],[ - "start", - ["storage.type","integer"], - ["text"," "], - ["identifier","len_Phrase"], - ["punctuation.operator",";"] + "start" ],[ "start", - ["storage.type","integer"], - ["text"," "], - ["identifier","id_Lettre"], - ["punctuation.operator",";"] -],[ - "start", - ["storage.type","string"], - ["text"," "], - ["identifier","Lettre"], - ["punctuation.operator",";"] -],[ - "start", - ["storage.type","string"], - ["text"," "], - ["identifier","matrice_Lettre"], - ["punctuation.operator",";"] -],[ - "start", - ["storage.type","vector"], - ["text"," "], - ["identifier","point_zero"], - ["punctuation.operator",";"] -],[ - "start", - ["storage.type","integer"], - ["text"," "], - ["identifier","x"], - ["punctuation.operator",";"] -],[ - "start", - ["storage.type","integer"], - ["text"," "], - ["identifier","z"], - ["punctuation.operator",";"] -],[ - "start", - ["text"," "] -],[ - "start", - ["comment.line","//==========================================="] -],[ - "start", - ["comment.line","// SET PARTICLES"] -],[ - "start", - ["comment.line","//==========================================="] -],[ - "start", - ["text"," "] -],[ - "start", - ["identifier","init_particles"], + ["identifier","some_user_defined_function_without_return_type"], ["paren.lparen","("], - ["paren.rparen",")"], + ["storage.type","string"], + ["text"," "], + ["identifier","inputAsString"], + ["paren.rparen",")"] +],[ + "start", ["paren.lparen","{"] -],[ - "start", - ["text"," "] ],[ "start", ["text"," "], - ["identifier","Particle_Parameters"], - ["text"," "], - ["keyword.operator","="], - ["text"," "], - ["paren.lparen","["], - ["text"," "] -],[ - "start", - ["text"," "], - ["constant.language","PSYS_SRC_TEXTURE"], - ["punctuation.operator",","], - ["text"," "], - ["identifier","Txt_Point"], - ["punctuation.operator",","], - ["text"," "] -],[ - "start", - ["text"," "], - ["constant.language","PSYS_PART_START_SCALE"], - ["punctuation.operator",","], - ["text"," "], - ["keyword.operator","<"], - ["text"," "], - ["identifier","Size_Point"], - ["punctuation.operator",","], - ["text"," "], - ["identifier","Size_Point"], - ["punctuation.operator",","], - ["text"," "], - ["constant.language","FALSE"], - ["text"," "], - ["keyword.operator",">"], - ["punctuation.operator",","], - ["text"," "] -],[ - "start", - ["text"," "], - ["constant.language","PSYS_PART_END_SCALE"], - ["punctuation.operator",","], - ["text"," "], - ["keyword.operator","<"], - ["text"," "], - ["identifier","Size_Point"], - ["punctuation.operator",","], - ["text"," "], - ["identifier","Size_Point"], - ["punctuation.operator",","], - ["text"," "], - ["constant.language","FALSE"], - ["text"," "], - ["keyword.operator",">"], - ["punctuation.operator",","], - ["text"," "] -],[ - "start", - ["text"," "], - ["constant.language","PSYS_PART_START_COLOR"], - ["punctuation.operator",","], - ["text"," "], - ["identifier","Color_Point"], - ["punctuation.operator",","], - ["text"," "] -],[ - "start", - ["text"," "], - ["constant.language","PSYS_PART_END_COLOR"], - ["punctuation.operator",","], - ["text"," "], - ["identifier","Color_Point"], - ["punctuation.operator",","], - ["text"," "] -],[ - "start", - ["text"," "] -],[ - "start", - ["text"," "], - ["constant.language","PSYS_SRC_BURST_PART_COUNT"], - ["punctuation.operator",","], - ["text"," "], + ["support.function","llSay"], ["paren.lparen","("], - ["storage.type","integer"], + ["constant.language","PUBLIC_CHANNEL"], + ["punctuation.operator",","], + ["text"," "], + ["identifier","inputAsString"], ["paren.rparen",")"], - ["constant.numeric","1"], - ["punctuation.operator",","], - ["text"," "] -],[ - "start", - ["text"," "], - ["constant.language","PSYS_SRC_BURST_RATE"], - ["punctuation.operator",","], - ["text"," "], - ["paren.lparen","("], - ["storage.type","float"], - ["paren.rparen",")"], - ["text"," "], - ["constant.numeric","0.0"], - ["punctuation.operator",","], - ["text"," "] -],[ - "start", - ["text"," "], - ["constant.language","PSYS_PART_MAX_AGE"], - ["punctuation.operator",","], - ["text"," "], - ["paren.lparen","("], - ["storage.type","float"], - ["paren.rparen",")"], - ["text"," "], - ["constant.numeric","30.0"], - ["punctuation.operator",","], - ["text"," "] -],[ - "start", - ["text"," "] -],[ - "start", - ["text"," "], - ["constant.language","PSYS_SRC_PATTERN"], - ["punctuation.operator",","], - ["text"," "], - ["paren.lparen","("], - ["storage.type","integer"], - ["paren.rparen",")"], - ["text"," "], - ["constant.numeric","1"], - ["punctuation.operator",","] -],[ - "start", - ["text"," "] -],[ - "start", - ["text"," "], - ["constant.language","PSYS_PART_FLAGS"], - ["punctuation.operator",","] -],[ - "start", - ["text"," "], - ["constant.language","PSYS_PART_EMISSIVE_MASK"] -],[ - "start", - ["text"," "], - ["paren.rparen","]"], ["punctuation.operator",";"] ],[ "start", ["paren.rparen","}"] ],[ - "start", - ["text"," "] + "start" ],[ "start", - ["comment.line","//==========================================="] + ["storage.type","string"], + ["text"," "], + ["identifier","user_defined_function_returning_a_string"], + ["paren.lparen","("], + ["storage.type","key"], + ["text"," "], + ["identifier","inputAsKey"], + ["paren.rparen",")"] ],[ "start", - ["comment.line","// SET DISPLAY"] + ["paren.lparen","{"] ],[ "start", - ["comment.line","//==========================================="] -],[ - "start", - ["identifier","affichage"], + ["text"," "], + ["keyword.control","return"], ["text"," "], ["paren.lparen","("], ["storage.type","string"], - ["text"," "], - ["identifier","phrase"], - ["paren.rparen",")"], - ["text"," "], - ["paren.lparen","{"] -],[ - "start", - ["text"," "] -],[ - "start", - ["text"," "], - ["storage.type","integer"], - ["text"," "], - ["identifier","len_Phrase"], - ["text"," "], - ["keyword.operator","="], - ["text"," "], - ["support.function","llStringLength"], - ["paren.lparen","("], - ["identifier","phrase"], - ["paren.rparen",")"], - ["constant.numeric","-1"], - ["punctuation.operator",";"], - ["text"," "] -],[ - "start", - ["text"," "], - ["keyword.control","for"], - ["paren.lparen","("], - ["identifier","id_Phrase"], - ["text"," "], - ["keyword.operator","="], - ["text"," "], - ["constant.numeric","0"], - ["punctuation.operator",";"], - ["text"," "], - ["identifier","id_Phrase"], - ["text"," "], - ["keyword.operator","<="], - ["text"," "], - ["identifier","len_Phrase"], - ["punctuation.operator",";"], - ["keyword.operator","++"], - ["identifier","id_Phrase"], - ["paren.rparen",")"], - ["paren.lparen","{"], - ["text"," "] -],[ - "start", - ["text"," "], - ["identifier","Lettre"], - ["text"," "], - ["keyword.operator","="], - ["text"," "], - ["support.function","llGetSubString"], - ["paren.lparen","("], - ["identifier","phrase"], - ["punctuation.operator",","], - ["text"," "], - ["identifier","id_Phrase"], - ["punctuation.operator",","], - ["text"," "], - ["identifier","id_Phrase"], ["paren.rparen",")"], + ["identifier","inputAsKey"], ["punctuation.operator",";"] -],[ - "start", - ["text"," "], - ["identifier","id_Lettre"], - ["text"," "], - ["keyword.operator","="], - ["text"," "], - ["support.function","llListFindList"], - ["paren.lparen","("], - ["identifier","Alphabet"], - ["punctuation.operator",","], - ["text"," "], - ["paren.lparen","["], - ["identifier","Lettre"], - ["paren.rparen","])"], - ["punctuation.operator",";"] -],[ - "start", - ["text"," "], - ["identifier","matrice_Lettre"], - ["text"," "], - ["keyword.operator","="], - ["text"," "], - ["support.function","llList2String"], - ["paren.lparen","("], - ["identifier","Matrices"], - ["punctuation.operator",","], - ["text"," "], - ["identifier","id_Lettre"], - ["paren.rparen",")"], - ["punctuation.operator",";"], - ["text"," "] -],[ - "start", - ["text"," "], - ["identifier","z"], - ["keyword.operator","="], - ["constant.numeric","0"], - ["punctuation.operator",";"], - ["text"," "] -],[ - "start", - ["text"," "], - ["keyword.control","do"], - ["paren.lparen","{"], - ["text"," "] -],[ - "start", - ["text"," "], - ["identifier","x"], - ["keyword.operator","="], - ["constant.numeric","0"], - ["punctuation.operator",";"] -],[ - "start", - ["text"," "], - ["keyword.control","do"], - ["paren.lparen","{"] -],[ - "start", - ["text"," "], - ["keyword.control","if"], - ["paren.lparen","("], - ["text"," "], - ["paren.lparen","("], - ["storage.type","integer"], - ["paren.rparen",")"], - ["support.function","llGetSubString"], - ["paren.lparen","("], - ["identifier","matrice_Lettre"], - ["punctuation.operator",","], - ["text"," "], - ["identifier","x"], - ["text"," "], - ["keyword.operator","+"], - ["text"," "], - ["constant.numeric","5"], - ["keyword.operator","*"], - ["identifier","z"], - ["punctuation.operator",","], - ["text"," "], - ["identifier","x"], - ["text"," "], - ["keyword.operator","+"], - ["text"," "], - ["constant.numeric","5"], - ["keyword.operator","*"], - ["identifier","z"], - ["paren.rparen",")"], - ["text"," "], - ["paren.rparen",")"], - ["text"," "], - ["paren.lparen","{"] -],[ - "start", - ["text"," "], - ["support.function","llSetLinkPrimitiveParamsFast"], - ["paren.lparen","("], - ["constant.language","LINK_THIS"], - ["punctuation.operator",","], - ["text"," "], - ["paren.lparen","["], - ["constant.language","PRIM_POSITION"], - ["punctuation.operator",","], - ["text"," "], - ["identifier","point_zero"], - ["text"," "], - ["keyword.operator","+"], - ["text"," "], - ["keyword.operator","<"], - ["text"," "], - ["identifier","x"], - ["keyword.operator","*"], - ["identifier","Size_Point"], - ["punctuation.operator",","], - ["text"," "], - ["constant.numeric","0.0"], - ["punctuation.operator",","], - ["text"," "], - ["keyword.operator","-"], - ["identifier","z"], - ["keyword.operator","*"], - ["identifier","Size_Point"], - ["text"," "], - ["keyword.operator",">"], - ["text"," "], - ["paren.rparen","])"], - ["punctuation.operator",";"] -],[ - "start", - ["text"," "], - ["support.function","llParticleSystem"], - ["paren.lparen","("], - ["text"," "], - ["identifier","Particle_Parameters"], - ["text"," "], - ["paren.rparen",")"], - ["punctuation.operator",";"] -],[ - "start", - ["text"," "], - ["support.function","llSleep"], - ["paren.lparen","("], - ["constant.numeric","0.12"], - ["paren.rparen",")"], - ["punctuation.operator",";"] -],[ - "start", - ["text"," "], - ["support.function","llParticleSystem"], - ["paren.lparen","("], - ["text"," "], - ["paren.lparen","["], - ["paren.rparen","]"], - ["text"," "], - ["paren.rparen",")"], - ["punctuation.operator",";"] -],[ - "start", - ["text"," "], - ["paren.rparen","}"] -],[ - "start", - ["text"," "], - ["paren.rparen","}"], - ["text"," "], - ["keyword.control","while"], - ["paren.lparen","("], - ["text"," "], - ["keyword.operator","++"], - ["identifier","x"], - ["text"," "], - ["keyword.operator","<="], - ["text"," "], - ["constant.numeric","4"], - ["paren.rparen",")"], - ["punctuation.operator",";"] -],[ - "start", - ["text"," "], - ["paren.rparen","}"], - ["text"," "], - ["keyword.control","while"], - ["paren.lparen","("], - ["text"," "], - ["keyword.operator","++"], - ["identifier","z"], - ["text"," "], - ["keyword.operator","<="], - ["text"," "], - ["constant.numeric","5"], - ["paren.rparen",")"], - ["punctuation.operator",";"] -],[ - "start", - ["text"," "] -],[ - "start", - ["text"," "], - ["identifier","point_zero"], - ["text"," "], - ["keyword.operator","+="], - ["text"," "], - ["keyword.operator","<"], - ["text"," "], - ["constant.numeric","6"], - ["punctuation.operator","."], - ["text"," "], - ["keyword.operator","*"], - ["text"," "], - ["identifier","Size_Point"], - ["punctuation.operator",","], - ["text"," "], - ["constant.numeric","0.0"], - ["punctuation.operator",","], - ["text"," "], - ["constant.numeric","0.0"], - ["text"," "], - ["keyword.operator",">"], - ["punctuation.operator",";"], - ["text"," "], - ["comment.line","//locate next char"] -],[ - "start", - ["text"," "], - ["paren.rparen","}"] ],[ "start", ["paren.rparen","}"] ],[ - "start", - ["comment.line","/////////////////////////////////////"] + "start" ],[ "start", - ["comment.line","///////////////////////////////////// "] + ["keyword.other","default"] ],[ "start", - ["comment.line","/////////////////////////////////////"] -],[ - "start", - ["comment.line","/////////////////////////////////////"] -],[ - "start", - ["text"," "] -],[ - "start", - ["text"," "] -],[ - "start", - ["keyword.other","default"], - ["text"," "], ["paren.lparen","{"] -],[ - "start", - ["text"," "] ],[ "start", ["text"," "], ["support.function.event","state_entry"], ["paren.lparen","("], - ["paren.rparen",")"], - ["text"," "], + ["paren.rparen",")"] +],[ + "start", + ["text"," "], ["paren.lparen","{"] ],[ "start", - ["text"," "] + ["text"," "], + ["storage.type","key"], + ["text"," "], + ["identifier","someKey"], + ["text"," "], + ["keyword.operator","="], + ["text"," "], + ["constant.language","NULL_KEY"], + ["punctuation.operator",";"] ],[ "start", ["text"," "], - ["support.function","llListen"], - ["paren.lparen","("], - ["constant.numeric","20"], - ["punctuation.operator",","], + ["identifier","someKey"], ["text"," "], - ["string.double","\"\""], - ["punctuation.operator",","], + ["keyword.operator","="], ["text"," "], ["support.function","llGetOwner"], ["paren.lparen","("], ["paren.rparen",")"], - ["punctuation.operator",","], - ["text"," "], - ["string.double","\"\""], - ["paren.rparen",")"], ["punctuation.operator",";"] ],[ - "start", - ["text"," "], - ["identifier","init_particles"], - ["paren.lparen","("], - ["paren.rparen",")"], - ["punctuation.operator",";"], - ["text"," "] + "start" ],[ "start", ["text"," "], - ["identifier","Origine"], + ["storage.type","string"], + ["text"," "], + ["identifier","someString"], ["text"," "], ["keyword.operator","="], ["text"," "], - ["keyword.operator","<"], - ["text"," "], + ["identifier","user_defined_function_returning_a_string"], ["paren.lparen","("], - ["constant.numeric","-0.48"], - ["text"," "], - ["keyword.operator","*"], - ["text"," "], - ["identifier","Size_Affich"], - ["punctuation.operator","."], - ["identifier","x"], + ["identifier","someKey"], ["paren.rparen",")"], - ["text"," "], - ["punctuation.operator",","], - ["text"," "], + ["punctuation.operator",";"] +],[ + "start" +],[ + "start", + ["text"," "], + ["identifier","some_user_defined_function_without_return_type"], ["paren.lparen","("], - ["constant.numeric","-1.25"], - ["text"," "], - ["keyword.operator","*"], - ["text"," "], - ["identifier","Size_Point"], + ["identifier","someString"], ["paren.rparen",")"], - ["text"," "], - ["punctuation.operator",","], - ["text"," "], - ["paren.lparen","("], - ["constant.numeric","0.3"], - ["text"," "], - ["keyword.operator","*"], - ["text"," "], - ["identifier","Size_Affich"], - ["punctuation.operator","."], - ["identifier","z"], - ["paren.rparen",")"], - ["text"," "], - ["keyword.operator",">"], - ["punctuation.operator",";"], - ["text"," "], - ["comment.line","//raz cursor"] + ["punctuation.operator",";"] ],[ "start", ["text"," "], ["paren.rparen","}"] ],[ - "start", - ["text"," "] + "start" ],[ "start", ["text"," "], - ["support.function.event","listen"], + ["support.function.event","touch_start"], ["paren.lparen","("], - ["text"," "], ["storage.type","integer"], ["text"," "], - ["identifier","channel"], - ["punctuation.operator",","], - ["text"," "], - ["storage.type","string"], - ["text"," "], - ["identifier","name"], - ["punctuation.operator",","], - ["text"," "], - ["storage.type","key"], - ["text"," "], - ["identifier","id"], - ["punctuation.operator",","], - ["text"," "], - ["storage.type","string"], - ["text"," "], - ["identifier","msg"], - ["text"," "], - ["paren.rparen",")"], - ["text"," "], + ["identifier","num_detected"], + ["paren.rparen",")"] +],[ + "start", + ["text"," "], ["paren.lparen","{"] -],[ - "start", - ["text"," "] ],[ "start", ["text"," "], - ["identifier","Texte"], + ["storage.type","list"], + ["text"," "], + ["identifier","agentsInRegion"], ["text"," "], ["keyword.operator","="], ["text"," "], - ["identifier","msg"], + ["support.function","llGetAgentList"], + ["paren.lparen","("], + ["constant.language","AGENT_LIST_REGION"], + ["punctuation.operator",","], + ["text"," "], + ["paren.lparen","["], + ["paren.rparen","])"], ["punctuation.operator",";"] ],[ "start", ["text"," "], - ["identifier","point_zero"], + ["storage.type","integer"], + ["text"," "], + ["identifier","numOfAgents"], ["text"," "], ["keyword.operator","="], ["text"," "], - ["identifier","Origine"], + ["support.function","llGetListLength"], + ["paren.lparen","("], + ["identifier","agentsInRegion"], + ["paren.rparen",")"], + ["punctuation.operator",";"] +],[ + "start" +],[ + "start", + ["text"," "], + ["storage.type","integer"], + ["text"," "], + ["identifier","index"], ["punctuation.operator",";"], - ["text"," "], - ["comment.line","//raz cursor "] + ["text"," "], + ["comment.line","// defaults to 0"] ],[ "start", ["text"," "], - ["support.function","llSetTimerEvent"], + ["keyword.control","for"], + ["text"," "], ["paren.lparen","("], - ["constant.numeric","30"], - ["punctuation.operator","."], + ["punctuation.operator",";"], + ["text"," "], + ["identifier","index"], + ["text"," "], + ["keyword.operator","<="], + ["text"," "], + ["identifier","numOfAgents"], + ["text"," "], + ["keyword.operator","-"], + ["text"," "], + ["constant.numeric","1"], + ["punctuation.operator",";"], + ["text"," "], + ["identifier","index"], + ["keyword.operator","++"], ["paren.rparen",")"], - ["punctuation.operator",";"] + ["text"," "], + ["comment.line","// for each agent in region"] ],[ "start", ["text"," "], - ["identifier","affichage"], - ["paren.lparen","("], - ["identifier","Texte"], - ["paren.rparen",")"], - ["punctuation.operator",";"] -],[ - "start", - ["text"," "], - ["paren.rparen","}"], - ["text"," "] -],[ - "start", - ["text"," "] -],[ - "start", - ["text"," "], - ["support.function.event","timer"], - ["paren.lparen","("], - ["paren.rparen",")"], ["paren.lparen","{"] ],[ "start", - ["text"," "] + ["text"," "], + ["support.function","llRegionSayTo"], + ["paren.lparen","("], + ["support.function","llList2Key"], + ["paren.lparen","("], + ["identifier","agentsInRegion"], + ["punctuation.operator",","], + ["text"," "], + ["identifier","index"], + ["paren.rparen",")"], + ["punctuation.operator",","], + ["text"," "], + ["constant.language","PUBLIC_CHANNEL"], + ["punctuation.operator",","], + ["text"," "], + ["string.double","\"Hello, Avatar!\""], + ["paren.rparen",")"], + ["punctuation.operator",";"] ],[ "start", ["text"," "], - ["identifier","point_zero"], + ["paren.rparen","}"] +],[ + "start", + ["text"," "], + ["paren.rparen","}"] +],[ + "start" +],[ + "start", + ["text"," "], + ["support.function.event","touch_end"], + ["paren.lparen","("], + ["storage.type","integer"], ["text"," "], + ["identifier","num_detected"], + ["paren.rparen",")"] +],[ + "start", + ["text"," "], + ["paren.lparen","{"] +],[ + "start", + ["text"," "], + ["identifier","someIntNormal"], + ["text"," "], ["keyword.operator","="], ["text"," "], - ["identifier","Origine"], - ["punctuation.operator",";"], - ["text"," "], - ["comment.line","//raz cursor"] + ["constant.numeric","3672"], + ["punctuation.operator",";"] ],[ "start", ["text"," "], - ["identifier","affichage"], + ["identifier","someIntHex"], + ["text"," "], + ["keyword.operator","="], + ["text"," "], + ["constant.numeric","0x00000000"], + ["punctuation.operator",";"] +],[ + "start", + ["text"," "], + ["identifier","someIntMath"], + ["text"," "], + ["keyword.operator","="], + ["text"," "], + ["constant.language","PI_BY_TWO"], + ["punctuation.operator",";"] +],[ + "start" +],[ + "start", + ["text"," "], + ["invalid.illegal","event"], + ["text"," "], + ["keyword.operator","="], + ["text"," "], + ["constant.numeric","5673"], + ["punctuation.operator",";"], + ["text"," "], + ["comment.line","// invalid reserved keyword!"] +],[ + "start" +],[ + "start", + ["text"," "], + ["identifier","someKeyTexture"], + ["text"," "], + ["keyword.operator","="], + ["text"," "], + ["constant.language","TEXTURE_DEFAULT"], + ["punctuation.operator",";"] +],[ + "start", + ["text"," "], + ["identifier","someStringSpecial"], + ["text"," "], + ["keyword.operator","="], + ["text"," "], + ["constant.language","EOF"], + ["punctuation.operator",";"] +],[ + "start" +],[ + "start", + ["text"," "], + ["invalid.deprecated","llCollisionSprite"], ["paren.lparen","("], - ["identifier","Texte"], + ["identifier","someKeyTexture"], ["paren.rparen",")"], + ["punctuation.operator",";"], + ["text"," "], + ["comment.line","// invalid deprecated function!"] +],[ + "start" +],[ + "start", + ["text"," "], + ["support.function","llWhisper"], + ["paren.lparen","("], + ["constant.language","PUBLIC_CHANNEL"], + ["punctuation.operator",","], + ["text"," "], + ["string.double","\"Leaving \\\"default\\\" now...\""], + ["paren.rparen",")"], + ["punctuation.operator",";"] +],[ + "start", + ["text"," "], + ["keyword.other","state"], + ["text"," "], + ["identifier","other"], ["punctuation.operator",";"] ],[ "start", @@ -1625,53 +432,49 @@ ["paren.rparen","}"] ],[ "start", - ["text"," "] -],[ - "start", - ["text"," "], - ["support.function.event","on_rez"], - ["paren.lparen","("], - ["storage.type","integer"], - ["text"," "], - ["identifier","param"], - ["paren.rparen",")"], - ["text"," "], - ["paren.lparen","{"], - ["support.function","llResetScript"], - ["paren.lparen","("], - ["paren.rparen",")"], - ["punctuation.operator",";"], ["paren.rparen","}"] ],[ - "start", - ["text"," "], - ["support.function.event","changed"], - ["paren.lparen","("], - ["storage.type","integer"], - ["text"," "], - ["identifier","mask"], - ["paren.rparen",")"], - ["text"," "], - ["paren.lparen","{"], - ["keyword.control","if"], - ["paren.lparen","("], - ["identifier","mask"], - ["text"," "], - ["keyword.operator","&"], - ["text"," "], - ["constant.language","CHANGED_OWNER"], - ["paren.rparen",")"], - ["text"," "], - ["paren.lparen","{"], - ["support.function","llResetScript"], - ["paren.lparen","("], - ["paren.rparen",")"], - ["punctuation.operator",";"], - ["paren.rparen","}}"], - ["text"," "] + "start" ],[ "start", - ["text"," "] + ["keyword.other","state"], + ["text"," "], + ["identifier","other"] +],[ + "start", + ["paren.lparen","{"] +],[ + "start", + ["text"," "], + ["support.function.event","state_entry"], + ["paren.lparen","("], + ["paren.rparen",")"] +],[ + "start", + ["text"," "], + ["paren.lparen","{"] +],[ + "start", + ["text"," "], + ["support.function","llWhisper"], + ["paren.lparen","("], + ["constant.language","PUBLIC_CHANNEL"], + ["punctuation.operator",","], + ["text"," "], + ["string.double","\"Entered \\\"state other\\\", returning to \\\"default\\\" again...\""], + ["paren.rparen",")"], + ["punctuation.operator",";"] +],[ + "start", + ["text"," "], + ["keyword.other","state"], + ["text"," "], + ["keyword.other","default"], + ["punctuation.operator",";"] +],[ + "start", + ["text"," "], + ["paren.rparen","}"] ],[ "start", ["paren.rparen","}"]