aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Harrison <adamdharrison@gmail.com>2023-06-09 09:24:17 -0400
committerAdam Harrison <adamdharrison@gmail.com>2023-08-24 14:07:20 -0400
commit78c592baad7e85656b41b1c26e6d87f0c900b9ec (patch)
tree253e5348fea6750dd4004f3d0deb1bb922a88e2e
parent896e40588411d758b8060ce2fae28ce1649c88d4 (diff)
downloadlite-xl-plugins-78c592baad7e85656b41b1c26e6d87f0c900b9ec.tar.gz
lite-xl-plugins-78c592baad7e85656b41b1c26e6d87f0c900b9ec.zip
Updated to match new behaviour of syntax.get for these plugins.2.2
-rw-r--r--plugins/language_caddyfile.lua2
-rw-r--r--plugins/language_fstab.lua2
-rw-r--r--plugins/language_htaccess.lua2
-rw-r--r--plugins/language_make.lua2
-rw-r--r--plugins/language_meson.lua2
-rw-r--r--plugins/language_pkgbuild.lua2
-rw-r--r--plugins/language_ruby.lua2
-rw-r--r--plugins/language_sh.lua2
8 files changed, 8 insertions, 8 deletions
diff --git a/plugins/language_caddyfile.lua b/plugins/language_caddyfile.lua
index f918c16..019a8f9 100644
--- a/plugins/language_caddyfile.lua
+++ b/plugins/language_caddyfile.lua
@@ -2,7 +2,7 @@
local syntax = require "core.syntax"
syntax.add {
- files = { "Caddyfile" },
+ files = { PATHSEP .. "Caddyfile" },
comment = "#",
patterns = {
{ pattern = { "#", "\n"}, type = "comment" },
diff --git a/plugins/language_fstab.lua b/plugins/language_fstab.lua
index bbe418e..b205ccd 100644
--- a/plugins/language_fstab.lua
+++ b/plugins/language_fstab.lua
@@ -4,7 +4,7 @@ local syntax = require "core.syntax"
syntax.add {
name = "fstab",
- files = { "fstab" },
+ files = { PATHSEP .. "fstab" },
comment = '#',
patterns = {
-- Only lines that start with a # are comments; you can have #'s in fuse
diff --git a/plugins/language_htaccess.lua b/plugins/language_htaccess.lua
index acfa419..f2335af 100644
--- a/plugins/language_htaccess.lua
+++ b/plugins/language_htaccess.lua
@@ -165,7 +165,7 @@ local xml_syntax = {
syntax.add {
name = ".htaccess File",
- files = { "^%.htaccess$" },
+ files = { PATHSEP .. "%.htaccess$" },
comment = "#",
patterns = {
-- Comments
diff --git a/plugins/language_make.lua b/plugins/language_make.lua
index 4ad3521..2d6b503 100644
--- a/plugins/language_make.lua
+++ b/plugins/language_make.lua
@@ -3,7 +3,7 @@ local syntax = require "core.syntax"
syntax.add {
name = "Makefile",
- files = { "Makefile", "makefile", "%.mk$" },
+ files = { PATHSEP .. "Makefile", PATHSEP .. "makefile", "%.mk$" },
comment = "#",
patterns = {
{ pattern = "#.*\n", type = "comment" },
diff --git a/plugins/language_meson.lua b/plugins/language_meson.lua
index be10d66..90a649e 100644
--- a/plugins/language_meson.lua
+++ b/plugins/language_meson.lua
@@ -3,7 +3,7 @@ local syntax = require "core.syntax"
syntax.add {
name = "Meson",
- files = { "^meson%.build$", "^meson_options%.txt$" },
+ files = { PATHSEP .. "meson%.build$", PATHSEP .. "meson_options%.txt$" },
comment = "#",
patterns = {
{ pattern = { "#", "\n" }, type = "comment" },
diff --git a/plugins/language_pkgbuild.lua b/plugins/language_pkgbuild.lua
index 049a5d1..3220628 100644
--- a/plugins/language_pkgbuild.lua
+++ b/plugins/language_pkgbuild.lua
@@ -3,7 +3,7 @@ local syntax = require "core.syntax"
syntax.add {
name = "PKGBUILD",
- files = "/*PKGBUILD$",
+ files = PATHSEP .. "*PKGBUILD$",
comment = "#",
patterns = {
-- Don't colorize number of arguments expression as comment
diff --git a/plugins/language_ruby.lua b/plugins/language_ruby.lua
index c46d558..75da3e0 100644
--- a/plugins/language_ruby.lua
+++ b/plugins/language_ruby.lua
@@ -3,7 +3,7 @@ local syntax = require "core.syntax"
syntax.add {
name = "Ruby",
- files = { "%.rb$", "%.gemspec$", "^Gemfile$", "^Gemfile%.lock$" },
+ files = { "%.rb$", "%.gemspec$", PATHSEP .. "Gemfile$", PATHSEP .. "Gemfile%.lock$" },
headers = "^#!.*[ /]ruby",
comment = "#",
patterns = {
diff --git a/plugins/language_sh.lua b/plugins/language_sh.lua
index 7409f2d..2c861d7 100644
--- a/plugins/language_sh.lua
+++ b/plugins/language_sh.lua
@@ -3,7 +3,7 @@ local syntax = require "core.syntax"
syntax.add {
name = "Shell script",
- files = { "%.sh$", "%.bash$", "^%.bashrc$", "^%.bash_profile$", "^%.profile$" },
+ files = { "%.sh$", "%.bash$", PATHSEP .. "%.bashrc$", PATHSEP .. "%.bash_profile$", PATHSEP .. "%.profile$" },
headers = "^#!.*bin.*sh\n",
comment = "#",
patterns = {