From 9ce8ec37d09f7d838ac033d382ed03564b11d5e2 Mon Sep 17 00:00:00 2001 From: JobinsJC Date: Tue, 23 Nov 2021 12:43:45 +0900 Subject: Add Macro Support --- plugins/language_rust.lua | 1 + 1 file changed, 1 insertion(+) (limited to 'plugins/language_rust.lua') diff --git a/plugins/language_rust.lua b/plugins/language_rust.lua index ac25305..9b94d69 100644 --- a/plugins/language_rust.lua +++ b/plugins/language_rust.lua @@ -15,6 +15,7 @@ syntax.add { { pattern = "-?%d+[%d%.eE]*f?", type = "number" }, { pattern = "-?%.?%d+f?", type = "number" }, { pattern = "[%+%-=/%*%^%%<>!~|&]", type = "operator" }, + { pattern = "[%a_][%w_]*!%f[%[(]", type = "function" }, { pattern = "[%a_][%w_]*%f[(]", type = "function" }, { pattern = "[%a_][%w_]*", type = "symbol" }, }, -- cgit v1.2.3