gilo/editor/highlight/constants.go
Timothy Warren cc99f08747
Some checks failed
timw4mail/gilo/pipeline/head There was a failure building this commit
Update to chapter 7 step 161 in kilo tutorial
2023-10-03 17:02:22 -04:00

23 lines
420 B
Go

package highlight
// ----------------------------------------------------------------------------
// !Syntax Highlighting Constants
// ----------------------------------------------------------------------------
const (
Normal = iota
Number
Match
)
const HighlightNumbers = (1 << 0)
var HLDB = []*Syntax{{
"c",
[]string{".c", ".h", ".cpp"},
HighlightNumbers,
}, {
"go",
[]string{".go"},
HighlightNumbers,
}}