From 2e3282b88b2cce66d98c9cde19ce7a5697808f3c Mon Sep 17 00:00:00 2001 From: PerilousBooklet Date: Sat, 20 Jul 2024 01:55:00 +0200 Subject: Add pattern for Kotlin test methods. (#431) * Added pattern for test methods. * Fixed test method pattern. * Plugin version bump. --- plugins/language_kotlin.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins') 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 -- cgit v1.2.3