mirror of
https://github.com/rwinkhart/go-highlite.git
synced 2026-10-27 11:59:56 -04:00
Support all rules in ansi.Colorize(); allow custom colors
This commit is contained in:
1 parent
fb66728b59
commit
7e2b926431
3 files changed
+67
-20
No files matched your search
@@ -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