-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathposecode.tmLanguage.json
More file actions
55 lines (55 loc) · 1.92 KB
/
Copy pathposecode.tmLanguage.json
File metadata and controls
55 lines (55 loc) · 1.92 KB
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
{
"$schema": "https://raw.githubusercontent.com/martinring/tmlanguage/master/tmlanguage.json",
"name": "Posecode",
"scopeName": "source.posecode",
"patterns": [
{ "include": "#comments" },
{ "include": "#strings" },
{ "include": "#keywords" },
{ "include": "#kinds" },
{ "include": "#actions" },
{ "include": "#joints" },
{ "include": "#constants" },
{ "include": "#numbers" }
],
"repository": {
"comments": {
"patterns": [
{ "name": "comment.line.number-sign.posecode", "match": "#.*$" },
{ "name": "comment.line.double-slash.posecode", "match": "//.*$" }
]
},
"strings": {
"name": "string.quoted.double.posecode",
"begin": "\"",
"end": "\"",
"patterns": [
{ "name": "constant.character.escape.posecode", "match": "\\\\." }
]
},
"keywords": {
"name": "keyword.control.posecode",
"match": "\\b(posecode|rig|prop|pose|start|step|repeat|clip|ground-lock|reach|pin|grip|turn|travel|cue|hold)\\b"
},
"kinds": {
"name": "storage.type.posecode",
"match": "\\b(exercise|stretch|posture)\\b"
},
"actions": {
"name": "keyword.operator.posecode",
"match": "\\b(flex|extend|abduct|adduct|rotate-in|rotate-out|supinate|pronate|dorsiflex|plantarflex)\\b"
},
"joints": {
"name": "variable.other.posecode",
"match": "\\b(shoulders|elbows|wrists|hips|knees|ankles|pelvis|spine|chest|neck|head|shoulder_left|shoulder_right|elbow_left|elbow_right|wrist_left|wrist_right|hip_left|hip_right|knee_left|knee_right|ankle_left|ankle_right)\\b"
},
"constants": {
"name": "constant.language.posecode",
"match": "\\b(flow|settle|drive|snap|linear|ease-in-out|ease-in|ease-out|neutral|standing|plank|hands|feet|humanoid|avatar1|avatar2|avatar3)\\b"
},
"numbers": {
"name": "constant.numeric.posecode",
"match": "\\b[0-9]+(\\.[0-9]+)?s?\\b"
}
}
}