qedit/ui/buffer/language.go
2021-03-27 13:42:11 -05:00

24 lines
302 B
Go
Executable File

package buffer
import "regexp"
type Syntax uint8
const (
Default Syntax = iota
Keyword
Special
Type
Number
Builtin
Comment
DocComment
)
type Language struct {
Name string
Filetypes []string // .go, .c, etc.
Rules map[*regexp.Regexp]Syntax
// TODO: add other language details
}