aboutsummaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'plugins')
-rw-r--r--plugins/language_cpp.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/plugins/language_cpp.lua b/plugins/language_cpp.lua
index a2684e0..92af01a 100644
--- a/plugins/language_cpp.lua
+++ b/plugins/language_cpp.lua
@@ -18,6 +18,10 @@ syntax.add {
{ pattern = "-?0x%x+", type = "number" },
{ pattern = "-?%d+[%d%.eE]*f?", type = "number" },
{ pattern = "-?%.?%d+f?", type = "number" },
+ {
+ pattern = "#include%s*()<.->",
+ type = { "keyword", "string" }
+ },
{ pattern = "[%+%-=/%*%^%%<>!~|&]", type = "operator" },
{ pattern = "[%a_][%w_]*%f[(]", type = "function" },
-- Match scope operator element access