Skip to content

Commit 7b50629

Browse files
Adding more keywords to signature
1 parent 27c3e18 commit 7b50629

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

runtime/syntax/cpp.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ filetype: c++
22

33
detect:
44
filename: "(\\.c(c|pp|xx)$|\\.h(h|pp|xx)?$|\\.ii?$|\\.(def)$)"
5-
signature: "namespace|template|public|protected|private"
5+
signature: "\\b(namespace|class|public|protected|private|template|constexpr|noexcept|nullptr|throw)\\b"
66

77
rules:
88
- identifier: "\\b[A-Z_][0-9A-Z_]*\\b"

0 commit comments

Comments
 (0)