aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_moon.lua
diff options
context:
space:
mode:
authorjperon <cataclop@hotmail.com>2023-04-20 12:56:57 +0200
committerGitHub <noreply@github.com>2023-04-20 12:56:57 +0200
commita1eac522b70ee65569586ee14a1ecaad6aeed0e2 (patch)
tree955514e329cdd4d89ec0221f901d88c9671a687a /plugins/language_moon.lua
parent68a2a6ac694e66cc4bb005d00c9debaa751d8fe7 (diff)
downloadlite-xl-plugins-a1eac522b70ee65569586ee14a1ecaad6aeed0e2.tar.gz
lite-xl-plugins-a1eac522b70ee65569586ee14a1ecaad6aeed0e2.zip
Fix MoonScript syntax highlighting (#233)
* Fix MoonScript syntax highlighting @ was causing weird behavior within strings. * Update language_moon.lua Highlight only @, not the whole property * Update language_moon.lua Forgotten line.
Diffstat (limited to 'plugins/language_moon.lua')
-rw-r--r--plugins/language_moon.lua3
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/language_moon.lua b/plugins/language_moon.lua
index 8042b7d..3ccb7ea 100644
--- a/plugins/language_moon.lua
+++ b/plugins/language_moon.lua
@@ -21,7 +21,8 @@ syntax.add {
{ pattern = "[%a_][%w_]*", type = "symbol" },
{ pattern = {"\\", "[%a_][%w_]*"}, type = "function" },
{ pattern = {"%.", "[%a_][%w_]*"}, type = "function" },
- { pattern = {"@", "[%a_][%w_]*"}, type = "keyword2" },
+ { pattern = "@[%a_][%w_]*", type = "keyword2" },
+ { pattern = "@", type = "keyword2" },
{ pattern = "!", type = "keyword2" },
{ pattern = "[%p]", type = "keyword" },
},