forked from PrismJS/prism
/
path_feature.test
89 lines (72 loc) · 1.83 KB
/
path_feature.test
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
$box01 -- object named 'box01'
$torso/left_up_arm/left_low_arm -- hierarchy path name
$*box* -- all objects with 'box' in
-- the name
$torso/* -- all the direct children of
-- $torso
$helpers/d* -- all helper objects whose name starts with 'd'
$dummy/head/neck
$dummy/*
$neck*
$box0?
$dummy/*/*
$dummy/.../box*
$dummy...*
$*box*.position += [10, 10, 0]
$.pos = [0,0,0]
hide $
rotate $ 35 z_axis
$'a silly name!!'
$'what the \*'
bodyPart=$'Bip01 L UpperArm'
bodyPart=$Bip01_L_UpperArm
----------------------------------------------------
[
["path", "$box01"],
["comment", "-- object named 'box01'"],
["path", "$torso/left_up_arm/left_low_arm"],
["comment", "-- hierarchy path name"],
["path", "$*box*"],
["comment", "-- all objects with 'box' in"],
["comment", "-- the name"],
["path", "$torso/*"],
["comment", "-- all the direct children of"],
["comment", "-- $torso"],
["path", "$helpers/d*"],
["comment", "-- all helper objects whose name starts with 'd'"],
["path", "$dummy/head/neck"],
["path", "$dummy/*"],
["path", "$neck*"],
["path", "$box0?"],
["path", "$dummy/*/*"],
["path", "$dummy/.../box*"],
["path", "$dummy...*"],
["path", "$*box*.position"],
["operator", "+="],
["punctuation", "["],
["number", "10"],
["punctuation", ","],
["number", "10"],
["punctuation", ","],
["number", "0"],
["punctuation", "]"],
["path", "$.pos"],
["operator", "="],
["punctuation", "["],
["number", "0"],
["punctuation", ","],
["number", "0"],
["punctuation", ","],
["number", "0"],
["punctuation", "]"],
["function-call", "hide"],
["path", "$"],
["function-call", "rotate"],
["path", "$"],
["number", "35"],
" z_axis\r\n\r\n",
["path", "$'a silly name!!'"],
["path", "$'what the \\*'"],
"\r\nbodyPart", ["operator", "="], ["path", "$'Bip01 L UpperArm'"],
"\r\nbodyPart", ["operator", "="], ["path", "$Bip01_L_UpperArm"]
]