mirror of
https://github.com/pulsar-edit/pulsar.git
synced 2024-10-05 15:07:49 +03:00
[language-gfm] Change scope for a horizontal rule…
to `markup.horizontal-rule.gfm` and add styles to all eight built-in syntax themes to account for it. All the old GFM scopes are just named however they needed to be named in order to produce syntax highlighting to the grammar author, semantics be damned. Instead, we're making sure the semantics are correct, then adapting the syntax themes accordingly.
This commit is contained in:
parent
4c0e7dda9f
commit
ee220dd6ef
@ -229,6 +229,12 @@
|
||||
&.syntax--italic {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
// Horizontal rules in GFM used to be scoped as `comment.hr`. For continuity,
|
||||
// we assign the color of a comment to this new scope.
|
||||
&.syntax--horizontal-rule {
|
||||
color: #8A8A8A;
|
||||
}
|
||||
}
|
||||
|
||||
// /* comment */
|
||||
|
@ -198,6 +198,12 @@
|
||||
&.syntax--italic {
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
// Horizontal rules in GFM used to be scoped as `comment.hr`. For continuity,
|
||||
// we assign the color of a comment to this new scope.
|
||||
&.syntax--horizontal-rule {
|
||||
color: #999988;
|
||||
}
|
||||
}
|
||||
|
||||
// /* comment */
|
||||
|
@ -267,6 +267,12 @@
|
||||
&.syntax--raw {
|
||||
color: @green;
|
||||
}
|
||||
|
||||
// Horizontal rules in GFM used to be scoped as `comment.hr`. For continuity,
|
||||
// we assign the color of a comment to this new scope.
|
||||
&.syntax--horizontal-rule {
|
||||
color: @gray;
|
||||
}
|
||||
}
|
||||
|
||||
.syntax--source.syntax--gfm {
|
||||
|
@ -267,6 +267,12 @@
|
||||
&.syntax--raw {
|
||||
color: @green;
|
||||
}
|
||||
|
||||
// Horizontal rules in GFM used to be scoped as `comment.hr`. For continuity,
|
||||
// we assign the color of a comment to this new scope.
|
||||
&.syntax--horizontal-rule {
|
||||
color: @gray;
|
||||
}
|
||||
}
|
||||
|
||||
.syntax--source.syntax--gfm {
|
||||
|
@ -320,4 +320,10 @@
|
||||
&.syntax--raw {
|
||||
color: @hue-4;
|
||||
}
|
||||
|
||||
// Horizontal rules in GFM used to be scoped as `comment.hr`. For continuity,
|
||||
// we assign the color of a comment to this new scope.
|
||||
&.syntax--horizontal-rule {
|
||||
color: @mono-3;
|
||||
}
|
||||
}
|
||||
|
@ -320,4 +320,10 @@
|
||||
&.syntax--raw {
|
||||
color: @hue-4;
|
||||
}
|
||||
|
||||
// Horizontal rules in GFM used to be scoped as `comment.hr`. For continuity,
|
||||
// we assign the color of a comment to this new scope.
|
||||
&.syntax--horizontal-rule {
|
||||
color: @mono-3;
|
||||
}
|
||||
}
|
||||
|
@ -37,4 +37,10 @@
|
||||
color: @syntax-comment-color;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
// Horizontal rules in GFM used to be scoped as `comment.hr`. For continuity,
|
||||
// we assign the color of a comment to this new scope.
|
||||
&.syntax--horizontal-rule {
|
||||
color: @syntax-comment-color;
|
||||
}
|
||||
}
|
||||
|
@ -37,4 +37,10 @@
|
||||
color: @syntax-comment-color;
|
||||
font-style: italic;
|
||||
}
|
||||
|
||||
// Horizontal rules in GFM used to be scoped as `comment.hr`. For continuity,
|
||||
// we assign the color of a comment to this new scope.
|
||||
&.syntax--horizontal-rule {
|
||||
color: @syntax-comment-color;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user