1
0
Fork 0

Fix formatting
timw4mail/gilo/pipeline/head This commit looks good Details

This commit is contained in:
Timothy Warren 2021-04-16 11:46:16 -04:00
parent 0569ede1a5
commit c378b712d3
2 changed files with 2 additions and 3 deletions

View File

@ -112,13 +112,12 @@ func (r *Row) updateSyntax() {
r.Hl = make([]int, r.RenderSize())
for i < r.RenderSize() {
ch := r.render[i]
prevHl := highlight.Normal
if i > 0 {
prevHl = r.Hl[i - 1]
prevHl = r.Hl[i-1]
}
if (unicode.IsDigit(ch) && (prevSep || prevHl == highlight.Number)) ||

View File

@ -40,4 +40,4 @@ func Ctrl(char rune) rune {
// IsSeparator Is the character a general token separator type?
func IsSeparator(char rune) bool {
return unicode.IsPunct(char) || unicode.IsSpace(char)
}
}