-
Notifications
You must be signed in to change notification settings - Fork 119
/
inline-styles.json
98 lines (98 loc) · 1.91 KB
/
inline-styles.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
85
86
87
88
89
90
91
92
93
94
95
96
97
98
{
"scopeName": "inline-styles.ng",
"injectionSelector": "L:source.ts#meta.decorator.ts -comment",
"patterns": [
{
"include": "#inlineStyles"
}
],
"repository": {
"inlineStyles": {
"begin": "(styles)\\s*(:)",
"beginCaptures": {
"1": {
"name": "meta.object-literal.key.ts"
},
"2": {
"name": "meta.object-literal.key.ts punctuation.separator.key-value.ts"
}
},
"end": "(?=,|})",
"patterns": [
{
"include": "#tsParenExpression"
},
{
"include": "#tsBracketExpression"
},
{
"include": "#style"
}
]
},
"tsParenExpression": {
"begin": "\\G\\s*(\\()",
"beginCaptures": {
"1": {
"name": "meta.brace.round.ts"
}
},
"end": "\\)",
"endCaptures": {
"0": {
"name": "meta.brace.round.ts"
}
},
"patterns": [
{
"include": "$self"
},
{
"include": "#tsBracketExpression"
},
{
"include": "#style"
}
]
},
"tsBracketExpression": {
"begin": "\\G\\s*(\\[)",
"beginCaptures": {
"1": {
"name": "meta.array.literal.ts meta.brace.square.ts"
}
},
"end": "\\]",
"endCaptures": {
"0": {
"name": "meta.array.literal.ts meta.brace.square.ts"
}
},
"patterns": [
{
"include": "#style"
}
]
},
"style": {
"begin": "\\s*([`|'|\"])",
"beginCaptures": {
"1": {
"name": "string"
}
},
"end": "\\1",
"endCaptures": {
"0": {
"name": "string"
}
},
"contentName": "source.css.scss",
"patterns": [
{
"include": "source.css.scss"
}
]
}
}
}