aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_liquid.lua
diff options
context:
space:
mode:
authorjgmdev <jgmdev@gmail.com>2022-11-01 20:57:07 -0400
committerjgmdev <jgmdev@gmail.com>2022-11-01 20:57:07 -0400
commit49139e03398c9d0ecb347267a4882a4eb3f7ee23 (patch)
tree6ac890a209172a29e09ad47ccd0156e7f7114382 /plugins/language_liquid.lua
parent380f6ef5fe9f8af19cd1f6b4c043eede51cbfcae (diff)
parent0971a7a686a4e18ee31b576c460966a5ec20ff01 (diff)
downloadlite-xl-plugins-49139e03398c9d0ecb347267a4882a4eb3f7ee23.tar.gz
lite-xl-plugins-49139e03398c9d0ecb347267a4882a4eb3f7ee23.zip
Merge branch '2.1'
Diffstat (limited to 'plugins/language_liquid.lua')
-rw-r--r--plugins/language_liquid.lua28
1 files changed, 14 insertions, 14 deletions
diff --git a/plugins/language_liquid.lua b/plugins/language_liquid.lua
index 58688c8..ad40a79 100644
--- a/plugins/language_liquid.lua
+++ b/plugins/language_liquid.lua
@@ -1,4 +1,4 @@
--- mod-version:2 -- lite-xl 2.0
+-- mod-version:3
local syntax = require "core.syntax"
local liquid_syntax = {
@@ -92,7 +92,7 @@ local liquid_syntax = {
["upcase"] = "keyword2",
["when"] = "keyword",
["where"] = "keyword2"
-
+
},
}
@@ -102,27 +102,27 @@ syntax.add {
patterns = {
{ pattern = { "{%%", "%%}" }, syntax = liquid_syntax, type = "function" },
{ pattern = { "{{", "}}" }, syntax = liquid_syntax, type = "function" },
- {
- pattern = {
+ {
+ pattern = {
"<%s*[sS][cC][rR][iI][pP][tT]%s+[tT][yY][pP][eE]%s*=%s*" ..
"['\"]%a+/[jJ][aA][vV][aA][sS][cC][rR][iI][pP][tT]['\"]%s*>",
- "<%s*/[sS][cC][rR][iI][pP][tT]>"
+ "<%s*/[sS][cC][rR][iI][pP][tT]>"
},
- syntax = ".js",
- type = "function"
+ syntax = ".js",
+ type = "function"
},
- {
- pattern = {
+ {
+ pattern = {
"<%s*[sS][cC][rR][iI][pP][tT]%s*>",
- "<%s*/%s*[sS][cC][rR][iI][pP][tT]>"
+ "<%s*/%s*[sS][cC][rR][iI][pP][tT]>"
},
syntax = ".js",
type = "function"
},
- {
- pattern = {
- "<%s*[sS][tT][yY][lL][eE][^>]*>",
- "<%s*/%s*[sS][tT][yY][lL][eE]%s*>"
+ {
+ pattern = {
+ "<%s*[sS][tT][yY][lL][eE][^>]*>",
+ "<%s*/%s*[sS][tT][yY][lL][eE]%s*>"
},
syntax = ".css",
type = "function"