From 5bca44f3bff242b48654a559fb6712bc2476f405 Mon Sep 17 00:00:00 2001 From: fgelm01 Date: Sat, 22 Jun 2024 12:15:33 -0400 Subject: [PATCH] Handle static constexpr in language_cpp (#1806) --- data/plugins/language_cpp.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/data/plugins/language_cpp.lua b/data/plugins/language_cpp.lua index 4bd08477..b0777dc2 100644 --- a/data/plugins/language_cpp.lua +++ b/data/plugins/language_cpp.lua @@ -38,6 +38,15 @@ syntax.add { { pattern = "static()%s+()inline", type = { "keyword", "normal", "keyword" } }, + { pattern = "static()%s+()constexpr", + type = { "keyword", "normal", "keyword" } + }, + { pattern = "static()%s+()constinit", + type = { "keyword", "normal", "keyword" } + }, + { pattern = "static()%s+()consteval", + type = { "keyword", "normal", "keyword" } + }, { pattern = "static()%s+()const", type = { "keyword", "normal", "keyword" } },