mirror of
				https://github.com/alecthomas/chroma.git
				synced 2025-10-30 23:57:49 +02:00 
			
		
		
		
	Use chroma.StyleEntries instead of map
				
					
				
			This commit is contained in:
		| @@ -5,7 +5,7 @@ import ( | ||||
| ) | ||||
|  | ||||
| // Pygments default theme. | ||||
| var Pygments = Register(chroma.MustNewStyle("pygments", map[chroma.TokenType]string{ | ||||
| var Pygments = Register(chroma.MustNewStyle("pygments", chroma.StyleEntries{ | ||||
| 	chroma.Whitespace:     "#bbbbbb", | ||||
| 	chroma.Comment:        "italic #408080", | ||||
| 	chroma.CommentPreproc: "noitalic #BC7A00", | ||||
|   | ||||
| @@ -5,7 +5,7 @@ import ( | ||||
| ) | ||||
|  | ||||
| // SwapOff theme. | ||||
| var SwapOff = Register(chroma.MustNewStyle("swapoff", map[chroma.TokenType]string{ | ||||
| var SwapOff = Register(chroma.MustNewStyle("swapoff", chroma.StyleEntries{ | ||||
| 	chroma.Background:        "#lightgray bg:#black", | ||||
| 	chroma.Number:            "bold #ansiyellow", | ||||
| 	chroma.Comment:           "#ansiteal", | ||||
|   | ||||
		Reference in New Issue
	
	Block a user