File tree Expand file tree Collapse file tree 2 files changed +92
-10
lines changed Expand file tree Collapse file tree 2 files changed +92
-10
lines changed Original file line number Diff line number Diff line change 23
23
" only" @operator
24
24
25
25
(attribute_selector (plain_value) @string)
26
- (pseudo_element_selector (tag_name) @attribute)
27
- (pseudo_class_selector (class_name) @attribute)
26
+
27
+ ((property_name) @variable
28
+ (#match? @variable " ^--" ))
29
+ ((plain_value) @variable
30
+ (#match? @variable " ^--" ))
28
31
29
32
(class_name) @property
30
33
(id_name) @property
31
34
(namespace_name) @property
32
35
(property_name) @property
33
36
(feature_name) @property
34
37
38
+ (pseudo_element_selector (tag_name) @attribute)
39
+ (pseudo_class_selector (class_name) @attribute)
35
40
(attribute_name) @attribute
36
41
37
42
(function_name) @function
38
43
39
- ((property_name) @variable
40
- (#match? @variable " ^--" ))
41
- ((plain_value) @variable
42
- (#match? @variable " ^--" ))
43
-
44
44
" @media" @keyword
45
45
" @import" @keyword
46
46
" @charset" @keyword
59
59
(float_value) @number
60
60
(unit) @type
61
61
62
- " #" @punctuation.delimiter
63
- " ," @punctuation.delimiter
64
- " :" @punctuation.delimiter
62
+ [
63
+ " #"
64
+ " ,"
65
+ " ."
66
+ " :"
67
+ " ::"
68
+ " ;"
69
+ ] @punctuation.delimiter
70
+
71
+ [
72
+ " {"
73
+ " )"
74
+ " ("
75
+ " }"
76
+ ] @punctuation.bracket
Original file line number Diff line number Diff line change
1
+ : root {
2
+ /* <- attribute */
3
+ /* <- punctuation.delimiter */
4
+ --color1 : # 000 ;
5
+ /* <- property */
6
+ /* ^ string.special */
7
+ /* ^ punctuation.delimiter */
8
+ --color2 : rgba (255 , 255 , 255 , 1 );
9
+ /* ^ function */
10
+ /* ^ punctuation.delimiter */
11
+
12
+ --font-family : 'Times New Roman' , sans-serif;
13
+ --spacing : .3em ;
14
+
15
+ --gap : 8px ;
16
+ }
17
+
18
+ body {
19
+ /* <- tag */
20
+ font-family : var (--font-family );
21
+ /* ^ function */
22
+ /* ^ punctuation.bracket */
23
+ /* ^ variable */
24
+ }
25
+
26
+ a {
27
+ color : blue;
28
+ }
29
+
30
+ a : href {
31
+ color : green;
32
+ }
33
+
34
+ # logo {
35
+ /* <- punctuation.delimiter */
36
+ /* ^ property */
37
+ /* ^ punctuation.bracket */
38
+ font-family : sans-serif;
39
+ /* <- property */
40
+ /* ^ punctuation.delimiter */
41
+ /* ^ punctuation.delimiter */
42
+ font : normal bold 1rem / 1.4 'Times New Roman' , sans-serif;
43
+ /* ^ punctuation.delimiter */
44
+ /* ^ operator */
45
+ /* ^ number */
46
+ /* ^ punctuation.delimiter */
47
+ /* ^ string */
48
+ /* ^ number */
49
+ /* ^ type */
50
+ padding : 0px 0px ;
51
+ /* ^ punctuation.delimiter */
52
+ /* ^ number */
53
+ /* ^ type */
54
+ /* <- property */
55
+ }
56
+ /* <- punctuation.bracket */
57
+
58
+ @media (max-width : 1024px ) {
59
+ /* ^ number */
60
+ /* ^ type */
61
+ /* ^ property */
62
+ /* <- keyword */
63
+ /* ^ punctuation.bracket */
64
+ /* ^ punctuation.bracket */
65
+ .container {
66
+ /* <- property */
67
+ /* <- punctuation.delimiter */
68
+ display : flex;
69
+ }
70
+ }
You can’t perform that action at this time.
0 commit comments