diff options
author | PerilousBooklet <raffaele.orabona@protonmail.com> | 2024-07-20 01:55:00 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-20 01:55:00 +0200 |
commit | 2e3282b88b2cce66d98c9cde19ce7a5697808f3c (patch) | |
tree | 4c736ec14659257113ad6f4cc30fdb9e265b9e4d /plugins/language_kotlin.lua | |
parent | b4a9d65bba32ab33e9ffb922f57276615fe28463 (diff) | |
download | lite-xl-plugins-2e3282b88b2cce66d98c9cde19ce7a5697808f3c.tar.gz lite-xl-plugins-2e3282b88b2cce66d98c9cde19ce7a5697808f3c.zip |
Add pattern for Kotlin test methods. (#431)
* Added pattern for test methods.
* Fixed test method pattern.
* Plugin version bump.
Diffstat (limited to 'plugins/language_kotlin.lua')
-rw-r--r-- | plugins/language_kotlin.lua | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/plugins/language_kotlin.lua b/plugins/language_kotlin.lua index 288ba34..c3d6b4f 100644 --- a/plugins/language_kotlin.lua +++ b/plugins/language_kotlin.lua @@ -22,6 +22,7 @@ syntax.add { { pattern = "[%+%-=/%*%^%%<>!~|&]", type = "operator" }, -- Operators { regex = [[\?(?=\.)]], type = "operator" }, -- ?. operator { pattern = "[%a_][%w_]*%f[(]", type = "function" }, -- Function/Method/Class + { regex = "`[\\w_\\s]+`(?=\\s*\\()", type = "function" }, -- Test Method { regex = [[let(?=\s\{)]], type = "function" }, -- ? operator { regex = [[\?\:(?=\s?)]], type = "operator" }, -- elvis operator { regex = [[this(?=\.?\@?)]], type = "keyword" }, -- this keyword |