added: *filename as a color sequence to match against (#747)

This commit is contained in:
Lucas Burns 2022-02-04 15:01:08 -06:00 committed by GitHub
parent 761aa23483
commit 895e22a1b5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -276,6 +276,10 @@ func (sm styleMap) get(f *file) tcell.Style {
return val return val
} }
if val, ok := sm["*"+f.Name()]; ok {
return val
}
if val, ok := sm[filepath.Base(f.Name())+".*"]; ok { if val, ok := sm[filepath.Base(f.Name())+".*"]; ok {
return val return val
} }