-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathMicro CSS.textmate
45 lines (44 loc) · 1.03 KB
/
Micro CSS.textmate
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
{ scopeName = 'source.mcss';
comment = '';
fileTypes = ( 'mcss' );
foldingStartMarker = '\{\s*$';
foldingStopMarker = '^\s*\}';
patterns = (
{ match = '([A-Z][A-Za-z\.]+)( )?{';
captures = { 1 = { name = 'variable.mcss'; }; };
},
{ match = '(\-[a-z][A-Za-z]+)( )?{';
captures = { 1 = { name = 'support.mcss'; }; };
},
{ match = '(_[a-z][A-Za-z]+)( )?{';
captures = { 1 = { name = 'string.mcss'; }; };
},
{ match = '([a-z,1-6 ]+[a-z1-6])( )?{';
captures = {
1 = { name = 'storage.mcss'; };
};
},
{ match = '([a-z1-6]+)(\.[a-zA-Z]+)?( )?{';
captures = {
1 = { name = 'storage.mcss'; };
2 = { name = 'support.mcss'; };
};
},
{ begin = '([a-zA-Z\-]+)(:)';
end = '(;)|\n';
captures = {
1 = { name = 'keyword.mcss'; };
2 = { name = 'keyword.operator.mcss'; };
};
patterns = (
{ match = "('.+')";
name = 'string.mcss';
},
{ match = "[a-zA-Z]+\(|\)";
name = 'storage.mcss';
},
);
name = 'constant.mcss';
},
);
}