Expose plaintext syntax (#1652)

This commit is contained in:
Guldoman 2023-11-30 16:53:01 +01:00 committed by George Sokianos
parent a29327e375
commit 39993a6d93
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@ local common = require "core.common"
local syntax = {}
syntax.items = {}
local plain_text_syntax = { name = "Plain Text", patterns = {}, symbols = {} }
syntax.plain_text_syntax = { name = "Plain Text", patterns = {}, symbols = {} }
function syntax.add(t)
@ -46,7 +46,7 @@ end
function syntax.get(filename, header)
return (filename and find(filename, "files"))
or (header and find(header, "headers"))
or plain_text_syntax
or syntax.plain_text_syntax
end