Add badges to readme

This commit is contained in:
Zachary Yedidia
2017-03-26 20:16:26 -04:00
parent 1a97fc1b03
commit 760b4668b3
3 changed files with 10 additions and 4 deletions
+3
View File
@@ -1,5 +1,8 @@
package highlight
// DetectFiletype will use the list of syntax definitions provided and the filename and first line of the file
// to determine the filetype of the file
// It will return the corresponding syntax definition for the filetype
func DetectFiletype(defs []*Def, filename string, firstLine []byte) *Def {
for _, d := range defs {
if d.ftdetect[0].MatchString(filename) {