1
+ class Foo </ test = "I'm a class level attribute" />{
2
+ </ test = "freakin attribute" /> //attributes of PrintTesty
3
+ function PrintTesty()
4
+ {
5
+ foreach(i,val in testy)
6
+ {
7
+ ::print("idx = "+i+" = "+val+" \n");
8
+ }
9
+ }
10
+ </ flippy = 10 , second = [1,2,3] /> //attributes of testy
11
+ testy = null;
12
+ }
13
+
14
+ ----------------------------------------------------
15
+
16
+ [
17
+ ["keyword", "class"],
18
+ ["class-name", ["Foo"]],
19
+ ["attribute-punctuation", "</"],
20
+ " test ",
21
+ ["operator", "="],
22
+ ["string", "\"I'm a class level attribute\""],
23
+ ["attribute-punctuation", "/>"],
24
+ ["punctuation", "{"],
25
+
26
+ ["attribute-punctuation", "</"],
27
+ " test ",
28
+ ["operator", "="],
29
+ ["string", "\"freakin attribute\""],
30
+ ["attribute-punctuation", "/>"],
31
+ ["comment", "//attributes of PrintTesty"],
32
+
33
+ ["keyword", "function"],
34
+ ["function", "PrintTesty"],
35
+ ["punctuation", "("],
36
+ ["punctuation", ")"],
37
+
38
+ ["punctuation", "{"],
39
+
40
+ ["keyword", "foreach"],
41
+ ["punctuation", "("],
42
+ "i",
43
+ ["punctuation", ","],
44
+ "val ",
45
+ ["keyword", "in"],
46
+ " testy",
47
+ ["punctuation", ")"],
48
+
49
+ ["punctuation", "{"],
50
+
51
+ ["operator", "::"],
52
+ ["function", "print"],
53
+ ["punctuation", "("],
54
+ ["string", "\"idx = \""],
55
+ ["operator", "+"],
56
+ "i",
57
+ ["operator", "+"],
58
+ ["string", "\" = \""],
59
+ ["operator", "+"],
60
+ "val",
61
+ ["operator", "+"],
62
+ ["string", "\" \\n\""],
63
+ ["punctuation", ")"],
64
+ ["punctuation", ";"],
65
+
66
+ ["punctuation", "}"],
67
+
68
+ ["punctuation", "}"],
69
+
70
+ ["attribute-punctuation", "</"],
71
+ " flippy ",
72
+ ["operator", "="],
73
+ ["number", "10"],
74
+ ["punctuation", ","],
75
+ " second ",
76
+ ["operator", "="],
77
+ ["punctuation", "["],
78
+ ["number", "1"],
79
+ ["punctuation", ","],
80
+ ["number", "2"],
81
+ ["punctuation", ","],
82
+ ["number", "3"],
83
+ ["punctuation", "]"],
84
+ ["attribute-punctuation", "/>"],
85
+ ["comment", "//attributes of testy"],
86
+
87
+ "\r\n testy ",
88
+ ["operator", "="],
89
+ ["keyword", "null"],
90
+ ["punctuation", ";"],
91
+
92
+ ["punctuation", "}"]
93
+ ]
0 commit comments