Use `header` to get syntax only when provided

This commit is contained in:
Guldoman 2021-10-25 14:06:07 +02:00
parent e68d6016f8
commit df665ddc38
No known key found for this signature in database
GPG Key ID: C08A498EC7F1AFDD
1 changed files with 1 additions and 1 deletions

View File

@ -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