mirror of
https://github.com/alecthomas/chroma.git
synced 2025-07-15 01:14:21 +02:00
Remove unused dark/light style type.
This commit is contained in:
@ -7,8 +7,8 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
func TestCompressStyle(t *testing.T) {
|
func TestCompressStyle(t *testing.T) {
|
||||||
style := "color: #888888; background-color: #ffffff"
|
style := "color: #888888; background-color: #faffff"
|
||||||
actual := compressStyle(style)
|
actual := compressStyle(style)
|
||||||
expected := "color:#888;background-color:#fff"
|
expected := "color:#888;background-color:#faffff"
|
||||||
require.Equal(t, expected, actual)
|
require.Equal(t, expected, actual)
|
||||||
}
|
}
|
||||||
|
1
style.go
1
style.go
@ -86,7 +86,6 @@ func NewStyle(name string, entries StyleEntries) *Style {
|
|||||||
// See http://pygments.org/docs/styles/ for details. Semantics are intended to be identical.
|
// See http://pygments.org/docs/styles/ for details. Semantics are intended to be identical.
|
||||||
type Style struct {
|
type Style struct {
|
||||||
Name string
|
Name string
|
||||||
Scheme Scheme
|
|
||||||
Entries map[TokenType]*StyleEntry
|
Entries map[TokenType]*StyleEntry
|
||||||
}
|
}
|
||||||
|
|
||||||
|
9
types.go
9
types.go
@ -1,14 +1,5 @@
|
|||||||
package chroma
|
package chroma
|
||||||
|
|
||||||
// Scheme is either dark or light.
|
|
||||||
type Scheme int
|
|
||||||
|
|
||||||
// Theme types.
|
|
||||||
const (
|
|
||||||
DarkScheme Scheme = iota
|
|
||||||
LightScheme
|
|
||||||
)
|
|
||||||
|
|
||||||
//go:generate stringer -type TokenType
|
//go:generate stringer -type TokenType
|
||||||
|
|
||||||
// TokenType is the type of token to highlight.
|
// TokenType is the type of token to highlight.
|
||||||
|
Reference in New Issue
Block a user