Merge pull request #631 from Guldoman/fix_missing_subsyntax
Use `header` to get syntax only when provided
This commit is contained in:
commit
b7042fd9f7
|
@ -22,7 +22,7 @@ end
|
|||
|
||||
function syntax.get(filename, header)
|
||||
return find(filename, "files")
|
||||
or find(header, "headers")
|
||||
or (header and find(header, "headers"))
|
||||
or plain_text_syntax
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue