From 3a27bd38ed0771d01b5499eac1a4762984fd16af Mon Sep 17 00:00:00 2001 From: PerilousBooklet Date: Tue, 5 Nov 2024 22:36:05 +0100 Subject: Add support for Plank's config and theme files. (#497) * Add support for Plank's config and theme files. * Fixed comment pattern and bumped version. --- plugins/language_ini.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'plugins') diff --git a/plugins/language_ini.lua b/plugins/language_ini.lua index 2f5d3b5..df2a46f 100644 --- a/plugins/language_ini.lua +++ b/plugins/language_ini.lua @@ -4,11 +4,11 @@ local syntax = require "core.syntax" syntax.add { name = "INI", - files = { "%.ini$", "%.inf$", "%.cfg$", "%.editorconfig$" }, + files = { "%.ini$", "%.inf$", "%.cfg$", "%.editorconfig$", "%.theme$", "%.dockitem$" }, comment = ';', patterns = { - { pattern = ";.-\n", type = "comment" }, - { pattern = "#.-\n", type = "comment" }, + { pattern = ";.*", type = "comment" }, + { pattern = "#.*", type = "comment" }, { pattern = { "%[", "%]" }, type = "keyword" }, { pattern = { '"""', '"""', '\\' }, type = "string" }, -- cgit v1.2.3