From e8ae7583bc357e7086a60816b97146a45ecf7150 Mon Sep 17 00:00:00 2001 From: Guldoman Date: Thu, 30 Nov 2023 16:53:01 +0100 Subject: [PATCH] Expose plaintext syntax (#1652) --- data/core/syntax.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/data/core/syntax.lua b/data/core/syntax.lua index 9862fbdf..6555a17c 100644 --- a/data/core/syntax.lua +++ b/data/core/syntax.lua @@ -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