aboutsummaryrefslogtreecommitdiff
path: root/plugins/language_kotlin.lua
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/language_kotlin.lua')
-rw-r--r--plugins/language_kotlin.lua1
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