aboutsummaryrefslogtreecommitdiff
path: root/data/plugins/language_lua.lua
diff options
context:
space:
mode:
authorNCarrezDev <n.carrez.dev@gmail.com>2022-07-06 10:15:44 +0200
committerNCarrezDev <n.carrez.dev@gmail.com>2022-07-06 10:15:44 +0200
commit030dcc1e62ff235271ee2dd84f07313a2bbf9574 (patch)
tree8c1f1bb9f64b1424235adf682b31830d0cdf9b0b /data/plugins/language_lua.lua
parente646f2fb28b24bae5d13994b14b75252718a6ccd (diff)
downloadpragtical-030dcc1e62ff235271ee2dd84f07313a2bbf9574.tar.gz
pragtical-030dcc1e62ff235271ee2dd84f07313a2bbf9574.zip
[chore]: Update syntax
Harmonizing the syntax files Now inline comment are a single string instead of a table of strings. -(language_c): Removed whitespaces breaking indent -(language_html): Removed trailing whitespace
Diffstat (limited to 'data/plugins/language_lua.lua')
-rw-r--r--data/plugins/language_lua.lua2
1 files changed, 1 insertions, 1 deletions
diff --git a/data/plugins/language_lua.lua b/data/plugins/language_lua.lua
index 01403ad3..193f344b 100644
--- a/data/plugins/language_lua.lua
+++ b/data/plugins/language_lua.lua
@@ -12,7 +12,7 @@ syntax.add {
{ pattern = { "'", "'", '\\' }, type = "string" },
{ pattern = { "%[%[", "%]%]" }, type = "string" },
{ pattern = { "%-%-%[%[", "%]%]"}, type = "comment" },
- { pattern = "%-%-.-\n", type = "comment" },
+ { pattern = "%-%-.*$", type = "comment" },
{ pattern = "0x%x+%.%x*[pP][-+]?%d+", type = "number" },
{ pattern = "0x%x+%.%x*", type = "number" },
{ pattern = "0x%.%x+[pP][-+]?%d+", type = "number" },