1
0
mirror of https://github.com/alecthomas/chroma.git synced 2025-02-15 13:33:12 +02:00

Remove unused dark/light style type.

This commit is contained in:
Alec Thomas 2017-09-18 14:19:59 +10:00
parent 19d5d708ad
commit c8636118d5
3 changed files with 2 additions and 12 deletions

View File

@ -7,8 +7,8 @@ import (
)
func TestCompressStyle(t *testing.T) {
style := "color: #888888; background-color: #ffffff"
style := "color: #888888; background-color: #faffff"
actual := compressStyle(style)
expected := "color:#888;background-color:#fff"
expected := "color:#888;background-color:#faffff"
require.Equal(t, expected, actual)
}

View File

@ -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.
type Style struct {
Name string
Scheme Scheme
Entries map[TokenType]*StyleEntry
}

View File

@ -1,14 +1,5 @@
package chroma
// Scheme is either dark or light.
type Scheme int
// Theme types.
const (
DarkScheme Scheme = iota
LightScheme
)
//go:generate stringer -type TokenType
// TokenType is the type of token to highlight.