Merge pull request #631 from Guldoman/fix_missing_subsyntax

Use `header` to get syntax only when provided
This commit is contained in:
Adam 2021-11-07 15:09:50 -05:00 committed by GitHub
commit b7042fd9f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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