Add header parsing for files without extensions

This commit is contained in:
Zachary Yedidia
2016-03-20 17:08:57 -04:00
parent 4b286bf293
commit fbeb1bf6bd
3 changed files with 34 additions and 13 deletions

View File

@@ -40,10 +40,10 @@ func NewBuffer(txt, path string) *Buffer {
b.name = path
b.savedText = txt
b.rules, b.filetype = GetRules(path)
b.Update()
b.rules, b.filetype = GetRules(b)
return b
}