Handle static constexpr in language_cpp (#1806)

This commit is contained in:
fgelm01 2024-06-22 12:15:33 -04:00 committed by GitHub
parent 687aeda956
commit 5bca44f3bf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 9 additions and 0 deletions

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" }
}, },