forked from slint-ui/slint
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathslint.tmLanguage.json
84 lines (84 loc) · 2.5 KB
/
slint.tmLanguage.json
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
{
"name": "slint",
"scopeName": "source.slint",
"patterns": [
{
"include": "#document"
}
],
"repository": {
"document": {
"patterns": [
{
"include": "#general"
},
{
"match": "\\b(import|from|export|struct|global|component|inherits)\\b",
"name": "keyword"
},
{
"match": "\\b(property|callback|animate|states|transitions|private|public|pure|function|in|out|in-out)\\b",
"name": "keyword.other"
},
{
"match": "\\b(if|for|return)\\b",
"name": "keyword.control"
},
{
"match": "\\b(root|parent|this|self)\\b",
"name": "variable.language"
},
{
"match": "[a-zA-Z_][a-zA-Z_\\-0-9]* *:",
"name": "variable.parameter"
},
{
"match": "[a-zA-Z_][a-zA-Z_\\-0-9]* *:=",
"name": "storage.type"
},
{
"match": "\\b(blue|red|green|yellow|red|black|ease|ease_in|ease_out|ease_in_out)\\b",
"name": "support.constant"
}
]
},
"general": {
"patterns": [
{
"include": "#block-comments"
},
{
"match": "//.*$",
"name": "comment.line"
},
{
"match": "\"[^\"]*\"",
"name": "string"
},
{
"match": "\\b#[0-9a-fA-F]+",
"name": "constant.other"
},
{
"match": "\\b\\d+(\\.\\d+)?\\w*",
"name": "constant.numeric"
}
]
},
"block-comments": {
"patterns": [
{
"name": "comment.block",
"begin": "/\\*",
"end": "\\*/",
"comment": "Block comment.",
"patterns": [
{
"include": "#block-comments"
}
]
}
]
}
}
}