1
0
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:
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) { 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)
} }

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. // 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
} }

View File

@ -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.