Skip to content

Commit

Permalink
Adding more keywords to signature
Browse files Browse the repository at this point in the history
  • Loading branch information
Neko-Box-Coder committed Jun 8, 2024
1 parent 27c3e18 commit 7b50629
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion runtime/syntax/cpp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ filetype: c++

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

rules:
- identifier: "\\b[A-Z_][0-9A-Z_]*\\b"
Expand Down

0 comments on commit 7b50629

Please sign in to comment.