Support all rules in ansi.Colorize(); allow custom colors

This commit is contained in:
2025-06-15 15:42:22 -04:00
parent fb66728b59
commit 7e2b926431
3 changed files with 67 additions and 20 deletions
+21
View File
@@ -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 {