qedit/ui/buffer/language.go
2021-03-30 23:00:32 -05:00

25 lines
310 B
Go
Executable File

package buffer
import "regexp"
type Syntax uint8
const (
Default Syntax = iota
Keyword
String
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
}