Use `header` to get syntax only when provided
This commit is contained in:
parent
e68d6016f8
commit
df665ddc38
|
@ -22,7 +22,7 @@ end
|
||||||
|
|
||||||
function syntax.get(filename, header)
|
function syntax.get(filename, header)
|
||||||
return find(filename, "files")
|
return find(filename, "files")
|
||||||
or find(header, "headers")
|
or (header and find(header, "headers"))
|
||||||
or plain_text_syntax
|
or plain_text_syntax
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue