Skip to content

Commit 4cc864f

Browse files
committed
🎨 Add syntax-highlighting support for reStructuredText
1 parent df48703 commit 4cc864f

File tree

2 files changed

+39
-1
lines changed

2 files changed

+39
-1
lines changed

index.less

+2-1
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@
1818
@import "styles/syntax/java.less";
1919
@import "styles/syntax/javascript.less";
2020
@import "styles/syntax/json.less";
21-
@import "styles/syntax/ruby.less";
2221
@import "styles/syntax/liquid.less";
2322
@import "styles/syntax/php.less";
2423
@import "styles/syntax/python.less";
24+
@import "styles/syntax/rst.less";
25+
@import "styles/syntax/ruby.less";

styles/syntax/rst.less

+37
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
.syntax--text.syntax--restructuredtext {
2+
3+
.syntax--entity {
4+
&.syntax--name.syntax--tag {
5+
color: @hue-5;
6+
}
7+
}
8+
9+
.syntax--markup {
10+
&.syntax--heading {
11+
color: @hue-1;
12+
}
13+
&.syntax--link {
14+
color: @hue-2;
15+
}
16+
}
17+
18+
.syntax--string {
19+
&.syntax--other {
20+
&.syntax--link {
21+
color: @hue-3;
22+
&.syntax--title {
23+
color: @hue-3;
24+
}
25+
}
26+
&.syntax--uri {
27+
color: @hue-2;
28+
}
29+
}
30+
}
31+
32+
.syntax--punctuation {
33+
&.syntax--definition.syntax--heading {
34+
color: @hue-1;
35+
}
36+
}
37+
}

0 commit comments

Comments
 (0)