-
Notifications
You must be signed in to change notification settings - Fork 7
/
regexp.less
66 lines (53 loc) · 1.23 KB
/
regexp.less
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
.syntax--source.syntax--regexp {
color: @syntax-color-regexp-text;
// ^ $
.syntax--control.syntax--anchor {
color: @syntax-color-regexp-anchor;
}
.syntax--group:not(.syntax--assertion) {
// ()
.syntax--punctuation {
color: @syntax-color-regexp-group;
}
}
.syntax--group.syntax--assertion {
// (?=)
.syntax--punctuation,
.syntax--look-ahead,
.syntax--look-behind,
.syntax--negative-look-ahead,
.syntax--negative-look-behind {
color: @syntax-color-regexp-assertion;
}
}
// |
.syntax--operator.syntax--or {
color: @syntax-color-regexp-group;
}
// $1
.syntax--variable.syntax--variable.syntax--replacement {
color: @syntax-color-regexp-group;
}
// \"
.syntax--escape.syntax--character {
color: @syntax-color-regexp-text;
}
// \s \w
.syntax--character-class.syntax--character {
color: @syntax-color-regexp-class;
}
.syntax--character-class.syntax--set {
// [^]
.syntax--punctuation, .syntax--negation {
color: @syntax-color-regexp-set;
}
// a-z
.syntax--range {
color: @syntax-color-regexp-set;
}
}
// ? + * {}
.syntax--operator.syntax--quantifier {
color: @syntax-color-regexp-quantifier;
}
}