Handle static constexpr in language_cpp (#1806)

This commit is contained in:
fgelm01
2024-06-23 10:08:08 +08:00
committed by takase1121
parent ce70fcf5dd
commit 9c7f1bede4
+9
View File
@@ -38,6 +38,15 @@ syntax.add {
{ pattern = "static()%s+()inline", { pattern = "static()%s+()inline",
type = { "keyword", "normal", "keyword" } 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", { pattern = "static()%s+()const",
type = { "keyword", "normal", "keyword" } type = { "keyword", "normal", "keyword" }
}, },