mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-09-01 22:57:13 -04:00
Support all rules in ansi.Colorize(); allow custom colors
This commit is contained in:
@@ -2,6 +2,27 @@ package syntax
|
||||
|
||||
import "sync"
|
||||
|
||||
// Syntax Rules Master List
|
||||
// comment
|
||||
// constant
|
||||
// constant.bool
|
||||
// constant.number
|
||||
// constant.specialChar
|
||||
// constant.string
|
||||
// error
|
||||
// identifier
|
||||
// identifier.macro
|
||||
// identifier.var
|
||||
// keyword
|
||||
// preproc
|
||||
// special
|
||||
// statement
|
||||
// symbol
|
||||
// symbol.brackets
|
||||
// symbol.operator
|
||||
// todo
|
||||
// type
|
||||
|
||||
var syntaxMap = make(map[string]*lazySyntax)
|
||||
|
||||
type lazySyntax struct {
|
||||
|
||||
Reference in New Issue
Block a user